You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Costanti <strong>in</strong> <strong>C++</strong><br />
Come le variabili le costanti sono locazioni di memoria<br />
dove storare dati ma NON cambiano.<br />
Ci sono due tipi di costanti:letterali e simboliche<br />
Letterale:<br />
e’ un val<strong>ore</strong> che digiti nel tuo programma quando e’<br />
necessario<br />
(es <strong>in</strong>t myAge=28; //28 e’ una costante letterale)<br />
Simbolica:<br />
StudentiPerClasse=15;<br />
StudentiLiceo=classi*StudentiPerClasse<br />
(serve solo a rendere piu’ comprensibile il codice)