Strings

  • + 1 comment

    include

    include

    using namespace std;

    int main() { // Complete the program string a,b; cin >> a; cin >> b;

    cout << a.size() << " " << b.size() << endl;
    cout << a + b << endl;
    
    char temp = b[0];
    b[0] = a[0];
    a[0] = temp;
    
    cout << a << " " << b << endl;
    return 0;
    

    }