Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _PACCHETTO_REGALO_H
- #define _PACCHETTO_REGALO_H
- #include <iostream>
- #include <fstream>
- using namespace std;
- class PacchettoRegalo {
- friend ostream & operator<< (ostream &, const PacchettoRegalo &);
- friend istream & operator>> (istream &, PacchettoRegalo &);
- protected:
- char * Destinatario;
- float Peso;
- char * Forma;
- public:
- PacchettoRegalo (const char * D="", const float P = 0, const char * F="");
- PacchettoRegalo (const PacchettoRegalo &);
- const char * get_Destinatario() const {return Destinatario;}
- float get_Peso() const {return Peso;}
- const char * get_Forma() const{return Forma;}
- ~PacchettoRegalo() {delete [] Destinatario; delete [] Forma;} //credo che non ha bisogno di essere dichiarata virtual
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment