// // example of using list-of-characters class. // // input: // none. // output: // results of calling some member functions. // #include #include // has EXIT_SUCCESS #include "list.h" using namespace std; int main(void) { char_list w1('x'); char_list w2("hello"); cout << "w1 = " << w1 << endl; cout << "w2 = " << w2 << endl; cout << "length of w1 = " << w1.length() << endl; cout << "length of w2 = " << w2.length() << endl; cout << "w1 + w2 = " << w1 + w2 << endl; w1 += w2; cout << "after adding w2 to w1, w1 = " << w1 << endl; return EXIT_SUCCESS; }