C++ Streams: A Quick Example
cout << "Please enter two numbers\n";
cout << "You entered the numbers " << a << " and " << b << '\n';
You entered the numbers 6 and 4
- Note, formatted output (ala printf()) is possible but hard
- This is a good example of where a C++ purist will always use << and >>, but a pragmatist will just use printf().