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.

Perche’ I puntatori<br />

Se tu hai gia’ una variabile con cui accedere ad un<br />

certo dato perche’ <strong>in</strong>ventarsi allora una variabile che<br />

porta <strong>in</strong>formazioni dell’<strong>in</strong>dirizzo di questa variabile<br />

con cui ritrovare quel val<strong>ore</strong><br />

Tre sono I motivi<br />

1.Maneggiare dati nel free st<strong>ore</strong><br />

2.Accedere ai membri e ai metodi di una classe<br />

(da comb<strong>in</strong>are con il polimorfismo per event-driven)<br />

3.Passare variabili a funzioni per riferimento<br />

Vedremo ora il punto 1.

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

Saved successfully!

Ooh no, something went wrong!