没有分支的话输出错误
int x = 1;
switch (x)
{
case 1: Console.WriteLine("fosite"); break;
case 2: Console.WriteLine("图"); break;
case 3: Console.WriteLine("思锐"); break;
default: Console.WriteLine("迪佛特"); break;
}
为什么输出“图”
int x = 1;
switch (x)
{
case 1: Console.WriteLine("fosite"); break;
case 2: Console.WriteLine("图"); break;
case 3: Console.WriteLine("思锐"); break;
default: Console.WriteLine("迪佛特"); break;
}
为什么输出“图”
2019-10-13
举报