// TestConstMember.cpp // Test the Constant Member class // CS210 F'02 10/1/03 Ray S. Babcock // #include using namespace std; #include "ConstMember.h" int main(void) { ConstMember o1(1,2), o2(3,4); cout << "one in o1 = " << o1.getOne(); cout << ", two in o1 = " << o1.getTwo(); cout << ", three in o1 = " << o1.getThree(); cout << endl; cout << "one in o2 = " << o2.getOne(); cout << ", two in o2 = " << o2.getTwo(); cout << ", three in o2 = " << o1.getThree(); cout << endl; o1 = o2; cout << "one in o1 = " << o1.getOne(); cout << ", two in o1 = " << o1.getTwo(); cout << ", three in o1 = " << o1.getThree(); cout << endl; cout << "one in o2 = " << o2.getOne(); cout << ", two in o2 = " << o2.getTwo(); cout << ", three in o2 = " << o1.getThree(); cout << endl; }