C++ Standard Input Read String from console
#include <iostream> using namespace std; int main() /* ww w. j a va2 s. c om*/ { string name; cout << "Type your name: "; cin >> name; cout << "Your name is " << name << endl; return 0; }