Bonjour,
esque quelqu'un peut me donné la syntaxe de switch
Code:
1
2
3
4
5
6
7
8 switch ( c1 ) {c1=v1 : instruction 1; c1=v1 : instruction 2; c1=v1 : instruction 3; c1=v1 : instruction 4; default: instruction default; }
Merci
Version imprimable
Bonjour,
esque quelqu'un peut me donné la syntaxe de switch
Code:
1
2
3
4
5
6
7
8 switch ( c1 ) {c1=v1 : instruction 1; c1=v1 : instruction 2; c1=v1 : instruction 3; c1=v1 : instruction 4; default: instruction default; }
Merci
Bonjour
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 switch ( c1 ) { v1 : instruction_1; break; v2 : instruction_2; break; v3 : instruction_3; break; v4 : instruction_4; break; default: instruction_default; }