mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-28 00:50:05 +08:00
17 lines
276 B
C
17 lines
276 B
C
|
void foo(int x) {
|
||
|
switch (x) {
|
||
|
case 1:
|
||
|
x += 1;
|
||
|
break;
|
||
|
case 2: x += 2;
|
||
|
break;
|
||
|
case 3: x += 3; break;
|
||
|
case 4: {
|
||
|
x += 4;
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
x = -x;
|
||
|
}
|
||
|
}
|