| <<< Formatted Output | Index | Standard Input Stream, Cont. >>> |
typename object name
------------ -----------
std::istream std::cin; // cin is a predefined object
Usage:
// 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. >>> |