Output
Uses cout function.
cout will output text strings.
Example - cout << “Hello there!\n”
cout will output variables.
Example - int hello; cout << hello;
cout will output both text and variables.
Example - int hello = 5; cout << “hello = “ << hello << “.\n”;
Previous slide
Next slide
Back to first slide
View graphic version