06.01.2015 Views

IMPARARE IL C++ in 6 ore? - INFN

IMPARARE IL C++ in 6 ore? - INFN

IMPARARE IL C++ in 6 ore? - INFN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operatori-regole di base.<br />

Assegnamento :x=10.0; (=)<br />

Incremento : c=c+1; oppure c++;(++)<br />

Decremento:c=c-1; oppure c--;(--)<br />

** <strong>in</strong>t a=++x; (assegna ad a il val<strong>ore</strong> <strong>in</strong>crementato<br />

di x)<br />

<strong>in</strong>t b=x++ (assegna a b il val<strong>ore</strong> di x e poi<br />

<strong>in</strong>crementa x)<br />

Stesse regole di precedenza che siete soliti con il<br />

fortran che possono essere stravolte dall’uso di<br />

parentesi.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!