You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { string a="abcd"; string b="ef";
cout<<a.length()<<" "<<b.length()<<endl; string temp=a+b; cout<<temp<<endl; swap(a[0],b[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 →
include
include
using namespace std;
int main() { string a="abcd"; string b="ef";
}