![]() |
#2
blueboy820062008-09-10 21:13
|
例:
switch(ival){
case 1:
int i=0;
break;
case 2:
......;
}
1: 在case 1:中定义的i是不是可以在case 2:中运用
2: 如果把int i=0;break;加上{}是不是只能在case 1:中使用 而 case 2:就不能运用了?