You are viewing a single comment's thread. Return to all comments →
int main() { char save; string a, b; cin >> a; cin >> b; cout << a.length() << " " << b.length() << endl; cout << a + b << endl; save = a[0]; a[0] = b[0]; b[0] = save; cout << a << " " << b << endl; return 0; }
Strings
You are viewing a single comment's thread. Return to all comments →