이것은 매우 간단한 코드입니다. 하지만 C#에서 콘솔 앱을 작성한 것은 이번이 처음입니다. 이 두 줄을 사용하여 간단히 말해C : Console.Read 오류가 발생했습니다.
int iRoll;
Console.WriteLine("Roll Dice and input number for your move");
iRoll = Console.Read();
나는 (이 숫자 패드 나 키보드의 경우는 문제가되지 않습니다) iRoll의 값이 53 인에 cmd 창에서 숫자 5를 입력합니다. 왜 이런거야?
'int.TryParse (Console.ReadLine(), out iRoll); ' – mybirthname