26 lines
507 B
Plaintext
26 lines
507 B
Plaintext
\b;Instruction \c;break\n;
|
|
Syntaxe:
|
|
\s;\c;while ( condition )
|
|
\s;{
|
|
\s; break;
|
|
\s;}
|
|
\n;
|
|
Cette instruction permet de sortir immédiatement d'une structure \c;\l;while\u cbot\while;\n; ou \c;\l;for\u cbot\for;\n;.
|
|
|
|
Voici un exemple d'utilisation:
|
|
\s;\c;int i = 0;
|
|
\s;while ( true )
|
|
\s;{
|
|
\s; \n;Instructions ...\c;
|
|
\s; i = i+1;
|
|
\s; if ( i >= 10 )
|
|
\s; {
|
|
\s; break;
|
|
\s; }
|
|
\s; \n;more instructions ...\c;
|
|
\s;}
|
|
\n;
|
|
|
|
\t;Voir aussi
|
|
\l;Programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.
|