<<< Formatted Output | Index | Standard input stream, cont. >>> |
cin is an instance of istream class:
// Formatted input of C++ variables int x; cin >> x; // Unformatted input of single characters char x = cin.get(); // Line-based input of text strings string text; getline( cin, text );
<<< Formatted Output | Index | Standard input stream, cont. >>> |