Go on marching
With the last homework shown below of this chapter done, I went into a new chapter, which is inheritance. Hope it won't puzzle me so much like operator overloading. #include <iostream> #include <string> using namespace std; class Student; class Teacher { public: Teacher() { id=0000; name="None"; sex="None"; hobby="None"; } Teacher(int i,string n,string s):id(i),name(n),sex(s){} friend void change (Teacher &,Student &); friend ostream& operator<< (ostream &,Teacher &); private: int id; string name; string sex; string hobby; }; class Student { public: Student() { id=0000; name="None"; sex="None"; hobby="None"; } Student(int i,string n,string s):id(i),name(n),sex(s),...