You are viewing a single comment's thread. Return to all comments →
int main() { string a, b; getline(cin, a); getline(cin, b); std::cout << a.size() << " " << b.size() << std::endl; std::cout << a + b << std::endl; std::cout << b[0] + a.substr(1, a.npos) << " " << a[0] + b.substr(1, b.npos); return 0; }
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 →