Note 3.14.1.
Make sure to use
<<
for output and >>
for input.. It can be useful to remember that the symbols point in the direction data is going. In cout << x
the value of x is going to the console. In cin >> x
a value is going from the console to the variable x .