#include #include #include "mystring.h" using namespace std; int main(int argc, char **argv) { mystring s = "hello"; //initialization: constructor, mystring.C l. 18 mystring t = s; //initialization: copy constructor, mystring.C l.7 cout << "s and t were initialized to the values \""; s.print(); cout << "\" and \""; t.print(); cout << "\".\n"; s = "goodbye"; //assignment: s.operator=("goodbye"); mystring.C l. 47 t = s; //assignment: t.operator=(s); mystring.C l. 29 cout << "s and t were assigned the values \""; s.print(); cout << "\" and \""; t.print(); cout << "\".\n"; return EXIT_SUCCESS; }