// compile with: g++ hello.cpp
#include<iostream>
using namespace std;
int main(int argc, char * argv[]) {
cout << "String please: ";
string s;
cin >> s;
cout << "Integer please: ";
int i;
cin >> i;
// note that + for strings is concatenation
cout << "s + s = " << s + s << endl;
cout << "i + i = " << i + i << endl;
// note that you don't have to tell cin what kind of variable
// you are reading, it does the right thing based on the type.
return 0;
}