/* File: driver.cpp Author: ??? Description: Driver file for MyString project, students will test their implemntation of the MyString class using this file. */ #include #include "MyString.h" int main() { MyString S; MyString *tmp_ptr; /* DELETE ME BEFORE SUBMISSION Here is an example of what a test case could look like: cout<<"Testing post-increment (operator++(MyString,int)):\n\n"; cout<<"START TEST 1\n"; tmp_ptr = new MyString("hello"); cout<<"Initial value of MS -- expected: 'hello', actual: '"<<(*tmp_ptr)<<"'\n"; cout<<"Returned by post-increment -- expected: 'hello', actual: '"<<++(*tmp_ptr)<<"'\n"; cout<<"New value of MS -- expected: 'ohell', actual: '"<<(*tmp_ptr)<<"'\n"; delete tmp_ptr; cout<<"END TEST 1\n\n"; cout<<"START TEST 2\n"; tmp_ptr = new MyString("h"); cout<<"Initial value of MS -- expected: 'h', actual: '"<<(*tmp_ptr)<<"'\n"; cout<<"Returned by post-increment -- expected: 'h', actual: '"<<++(*tmp_ptr)<<"'\n"; cout<<"New value of MS -- expected: 'h', actual: '"<<(*tmp_ptr)<<"'\n"; delete tmp_ptr; cout<<"END TEST 2\n\n"; ...Maybe another one with "" ? */ return 0; };