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.

Loop<strong>in</strong>g:Cont<strong>in</strong>ue e break<br />

Se vuoi fare un loop prima che sia f<strong>in</strong>ito<br />

l’<strong>in</strong>tero set di statements nel blocco while<br />

Usi cont<strong>in</strong>ue (ritorni alla testa del loop)<br />

Se vuoi uscire dal loop prima che sia f<strong>in</strong>ita la<br />

condizione usi break.<br />

Utile per esempio <strong>in</strong> loop <strong>in</strong>f<strong>in</strong>iti tipo while(1)<br />

per cui ti <strong>in</strong>terrompi se certe condizioni<br />

sono raggiunte.

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

Saved successfully!

Ooh no, something went wrong!