C++ I/O
C++ I/O stands for "input and output." Input is the way we get data into our programs. Output is how we write out messages to the computer screen. See below for the C++ statements we use for input and output. Oh, by the way, you should also read about I/O in section 1.3 in your text (beginning on page 22).
cin >> x; // this line puts the value the user types in the variable x
cin >> x >> y; // input values in two variables x and y
cout << "hello\n"; // this line prints the word hello to the screen
cout << x << endl; // prints the value of the variable x to the screen with a <CR>