注册 登录
编程论坛 C# 论坛

Console.ReadLine

zhelongyi 发布于 2014-11-05 15:17, 354 次点击
在我要输入打出时,如果ReadLine可以正常打出。用Read就不行。比如说
int a=1,b=3,c;
while(true)
{
Console.WhiteLine(++a + ++b);
c=Convert.ToInt32(Console.ReadLine());
Console.WhiteLine("iii"+c);
Console.ReadLine();}
这样就可以,如果是把最后一行改成Console.Read();就不行
0 回复
1