[C#] 选项 →→→→→进入此内容的聊天室

来自 , 2020-10-03, 写在 C#, 查看 108 次.
URL http://www.code666.cn/view/36e729ec
  1. string choice = Console.ReadLine();
  2. string ch = choice.ToLower();
  3. while (ch != "a" && ch != "b" && ch != "c")
  4. {
  5.    Console.WriteLine("There is no such choice,input again!");
  6.    choice = Console.ReadLine();
  7.    ch = choice.ToLower();
  8. }
  9. switch(ch)
  10. {
  11.    case "a":
  12.     StartGame();
  13.     break;
  14.    case "b":
  15.     Help();
  16.     break;
  17.    case "c":
  18.     break;
  19. }
  20.  

回复 "选项"

这儿你可以回复上面这条便签

captcha