You are viewing a single comment's thread. Return to all comments →
#include <iostream> #include <string> using namespace std; int main() { string a; string b; cin>>a; cin>>b; cout<<a.size()<<" "; cout<<b.size(); cout<<endl; cout<<a+b; cout<<endl; char c; c=b[0]; b[0]=a[0]; a[0]=c; cout<<a<<" "<<b; 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 →