|
Voici un tableau montrant un comparatif des syntaxes des instructions du langage Basic par rapport à ceux du langage C:
IF condition THEN
END IF
|
if(condition) {
}
|
étiquette:
GOTO étiquette
|
étiquette:
goto étiquette;
|
FOR i = a TO b STEP c
instruction
NEXT
|
for(i = a;b<i;i+=c) {
instruction
}
|
SUB procédure
instruction
END SUB
|
void procédure() {
instruction
}
|
WHILE condition
instruction
WEND
|
while(condition) {
instruction
}
|
|
DIM variable AS Integer
|
int variable;
|
|
|
| Dernière mise à jour: Vendredi, le 27 janvier 2006 |