You are viewing a single comment's thread. Return to all comments →
#include <iostream> #include <string> using namespace std; int main() { string a , b , concat , c , d ; cin>>a; cin>>b; int lena , lenb ; lena = a.size(); lenb = b.size(); cout<<lena<<" "<<lenb<<endl; concat = a + b; cout<<concat<<endl; for (int i = 0 ; i < a.size() ; i ++ ) { c = a; if (!c[0]) { c[0]++; } else if ( c[0] ) { c[0] = b[0]; } } for (int i = 0; i < a.size(); i++) { d = b; if (!d[0]) { d[0]++; } else if (d[0]) { d[0] = a[0]; } } cout<<c<<" "<<d<<endl; return 0; }
My Beloved !
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 →
My Beloved !