我不知道为什么会收到以下错误:
控制不能从一个案例标签 ('case "h":') 转移到另一个 (CS0163)
仅适用于 H 和 S - 很奇怪。
switch(myChoice)
{
case "K":
case "k":
Console.WriteLine("You have chosen the Kanto region");
break;
case "O":
case "o":
Console.WriteLine("You have chosen the Orange Islands");
break;
case "J":
case "j":
Console.WriteLine("You have chosen the Johto region");
break;
case "H":
case "h":
Console.WriteLine("You have chosen the Hoenn region");
case "S":
case "s":
Console.WriteLine("You have chosen the Sinoh region");
case "U":
case "u":
Console.WriteLine("You have chosen the Unova region");
break;
case "R":
case "r":
Console.WriteLine("Return");
break;
default:
Console.WriteLine("{0} is not a valid choice", myChoice);
break;
}