You are viewing a single comment's thread. Return to all comments →
C++ 14 solution:
int main() { string a, b; cin >> a >> b; cout << a.size() << " " << b.size() << "\n"; cout << a + b << "\n"; const char ITER = a.at(0); a.at(0) = b.at(0); b.at(0) = ITER; cout << a << " " << b; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strings
You are viewing a single comment's thread. Return to all comments →
C++ 14 solution: