Els elements del codi Arduino (C++).
Sketch | Operadors aritmètics | Operadors de punters |
---|---|---|
loop() | % (modul) | & (reference operator) |
setup() | * (producte) | * (dereference operator) |
+ (suma) | ||
Estructures de control | - (resta) | Operadors bit a bit |
break | / (divisio) | & (and bit a bit) |
continue | = (assignacio) | « (desplaçament esquerra) |
do…while | » (desplaçament dreta) | |
else | Operadors de comparació | ’^’ (xor exclusiu) |
for | != (distint a) | | (or bit a bit) |
goto | < (menor que) | ~ (not bit a bit) |
if | <= (menor o igual que) | |
return | == (igual a) | Operadors compostos |
switch…case | > (major que) | %= (modul compost) |
while | >= (major o igual que) | &= (and bit a bit compost) |
*= (producte compost) | ||
Sintaxi adicional | Operadors Booleans | ++ (increment) |
#define (define) | ! (logical not) | += (suma composta) |
#include (include) | && (logical and) | – (decrement) |
/* */ (bloc de comentari) | || (logical or) | -= (resta composta) |
// (comentari) | /= (divisio composta) | |
; (punt i coma) | ’^’= (XOR bit a bit compost) | |
{} (claus) | |= (OR bit a bit compost) |
INDEX README.md