Electrical and Computer Engineering
2 of 24
UAH
CPE 112
Output
•We use cout and the insertion operator “<<“.
–cout << “Hello”;
•cout displays the string inserted characters on the standard output device, usually the video screen.
–cout << “The title is ” << bookTitle + “ , 2nd Edition”;
•OutputStatement
• cout << Expression << Expression …;