为什么能这样呢?
do
{
Console.WriteLine( "Select a direction(between 1 and 4): ");
myDirection = Convert.ToInt32(Console.ReadLine());
//string-> int32,为什么输入a出错,而按f6仅仅是重新输入呢?
}
while ((myDirection < 1) || (myDirection > 4));
不太明白,请指点,谢谢!
------解决方案--------------------沙发。帮忙顶