#include #include #include "mystring.h" using namespace std; int main() { const mystring h {"hello"}; //Call the plain old constructor. const mystring g {"goodbye"}; //Call the plain old constructor. mystring copy {h}; //Call the copy constructor. cout << copy << "\n"; copy = g; //copy.operator=(g); cout << copy << "\n"; copy[0] = 'G'; //copy.operator[](0) = 'G'; cout << copy << "\n"; //h[0] = 'H'; //Won't compile because h is a const mystring. return EXIT_SUCCESS; }