#ifndef _exam_h #define _exam_h class Exam { private: String *code; //codice dell'attivitā int year; //anno in cui č stato svolto char *buffer; //buffer per l'output public: //costruttori Exam(); Exam(String *what, int when); //distruttore ~Exam(); //accesso ai membri privati String *GetName() { return code; } int GetYear() { return year; } void SetYear(int which) { year = which; } //funzioni dedicate char* GetChar(); Exam* Create(char *what, int riga, char* file); //overload operatore << (obsoleto) friend ostream& operator<<(ostream& co, Exam &E) { co << *(E.code) << ", " << E.year; return co; } //overload operatore == friend int operator==(Exam &left, Exam &right) { if(*(left.code)==*(right.code)) return 1; //se il codice č uguale allora l'esame č lo stesso return 0; } }; #endif