You are viewing a single comment's thread. Return to all comments →
Just because noone used the new string to swap.
#include <iostream> #include <string> using namespace std; int main() { // Complete the program string a,b,c; cin>>a>>b; c = a+b; cout<<a.size()<<" "<<b.size()<<"\n"; cout<<c<<"\n"; a[0]=b[0]; b[0]=c[0]; 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 →
Just because noone used the new string to swap.