Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "contenitore.h"
- using namespace std;
- int main()
- {
- Contenitore c = Contenitore(3);
- c.inserisci(1);
- cout << endl;
- c.inserisci(2);
- cout << endl;
- c.inserisci(3);
- cout << endl << c << endl;
- //<----- IN QUESTO PUNTO DEL PROGRAMMA CAMBIANO LE PRIME DUE VARIABILI
- cout << c << endl;
- /*for(int i = 0; i < c.dimensione(); i++) {
- cout << "elementi[" << i << "]: " << c.getElemento(i) << " ";
- }*/
- c.inserisci(2);
- cout << endl;
- c.inserisci(5);
- cout << endl;
- c.inserisci(6);
- cout << endl;
- cout << c << " Capacita: " << c.getCapacita() << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement