#include #include #include "mystring.h" using namespace std; int main(int argc, char **argv) { mystring s = "hello"; cout << s[0] << "\n"; //cout << s.operator[](0) << "\n"; s[0] = 'H'; //s.operator[](0) = 'H'; cout << s[0] << "\n"; //cout << s.operator[](0) << "\n"; const mystring t = "goodbye"; cout << t[0] << "\n"; //cout << t.operator[](0) << "\n"; //t[0] = 'G'; //won't compile: t.operator[](0) = 'G'; return EXIT_SUCCESS; }