【发布时间】:2017-04-09 07:46:41
【问题描述】:
我有这个代码:
var read = Convert.ToInt32(Console.ReadLine()); // Reading Integer from console
if (read == 1) // If read equals some value
{
// Do Something
}
如果我按下某个键,我想这样做,它会立即走得更远,而无需在控制台中按 enter 进行确认。谢谢
【问题讨论】: