//***************************************** //overloading '<<' to work with object //***************************************** #include #include using namespace std; //----------------------------------------- class id{ char name[10]; char surname[10]; int idem; public: id(char *na,char *sur,int i){ strcpy(name,na); strcpy(surname,sur); idem=i; } friend ostream &operator<<(ostream &stream, id o); }; //--------------------------------------------- ostream &operator<<(ostream &stream,id o){ stream<<"name "<