/////// File: tstRfstr.C /////// #include "Refstr.h" int callcmp(Refstr a, Refstr b) { return(a.cmp(b)); } main() { Refstr s1("There"); Refstr s2("Here"); Refstr s3("Hello"); Refstr s4 = s3; s2 = s1; s1 = s2; if ( callcmp(s1,s2) == 0) cout << "A\n"; s1 = s3; if ( callcmp(s3,s2) == 0) cout << "B\n"; cout << "main finishing\n"; }