//string2.cpp -- @CopyLeft by tsaiwn@csie.nctu.edu.tw // some useful member functions in the class string #include #include using namespace std; #include int main() { string s("Hello here there!"); string s2="Hello here there!"; string t; t = s + " How R U doing?"; cout << "t=" << t << endl; cout << "s2=" << s2 << endl; cout << "s=" << s << endl; cout << " (s==s2) == " << (s==s2) << endl; cout << " (s> s2) == " << (s> s2) << endl; cout << " (s< s2) == " << (s< s2) << endl; cout << " (s> t) == " << (s> t) << endl; cout << " (s< t) == " << (s< t) << endl; cout << "s.substr(1,3)=" << s.substr(1,3)<