Using system;
Class Example1
{
Public Static void main()
{
Int x=1,a=0,b=0;
Switch(x)
{
Case 0:b++,break;
Case 1:a++,break;
Case 2:a++,b++,break;
}
Console.Writeline(“a={0},b={1}”,a,b);
}
}
的输出结果是()
A.a=2,b=1
B.a=1,b=1
C.a=1,b=0
D.a=2,b=2
答案不对?请尝试站内搜索