You are viewing a single comment's thread. Return to all comments →
I hope this will Help you to think something new.don't copy paste. }
#include <iostream> #include <string> using namespace std; int main() { string a,b; string tmp; cin>>a; cin>>b; cout<<a.size()<<" "<<b.size()<<endl<<(a+b)<<endl; tmp[0]=a[0]; tmp[1]=b[0]; a[0]=tmp[1]; b[0]=tmp[0]; cout<<a<<" "; cout<<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 →
I hope this will Help you to think something new.don't copy paste. }