#include #include #include "mystring.h" using namespace std; int main(int argc, char **argv) { mystring s = "hello"; //the constructor that takes a const char * const mystring t = s; //the copy constructor of t s[0] = 'H'; //s.operator[](0) = 'H'; in mystring.C line 62 cout << "s == \""; s.print(); cout << "\"\n"; cout << "t == \""; t.print(); cout << "\"\n"; return EXIT_SUCCESS; //Call the destructors for t and s. }