实际上,我不知道如何从输入控制台获取整数输入。然后我做了个小小的研究后尝试了一下。我的守则: stdout.write("Enter a number: ");
int num1 = int.parse(stdin.readLineSync最后,我知道在dart2.12+版本中,dart引入了空安全。任<
我正在用c#做一个控制台应用程序。我遇到了一个问题,它会覆盖我输入的内容..我让它在两个线程上运行。//Do whatever with the command}System.Console.WriteLine("Anything");
如果我已经在写输入了,它会把"Anything“放在我的输入中间。我只是想知道如何在控制台应用程序<