Cheatography
https://cheatography.com
Déclarations de variablestypename variablename; | typename variablename = expression; |
Conditionsif (expressionBool) { ... } | if (expressionBool) { ... } else { ... } | if (expressionBool) { ... } else if (expressionBool) { ... } ... else { ... } |
| | Boucleswhile (exprBool) { ... } | do { ... } while (exprBool); | for(init ; exprBool ; incr) { ... } |
For / Whilefor (a ; b ; c) { d; }
// equivalent to
a;
while(b) {
d;
c;
}
|
| | Afficher du texteprintf("hello");
| hello | printf("x = %d", 5);
| x = 5 |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets