ENSC 104: DIGITAL COMPUTER PROGRAMMING
6. SIMPLE PROGRAMS
Readings: Pages 17-26
cin : This object refers to the standard input
device that is normally connected to the keyboard.
cout : This object refers to the standard output device normally
connected to the computer screen.
cerr : This object refers to the standard error device that is
normally connected to the computer screen.
- Program 1.5a Use of 'cout' and the insertion
operator '<<'
- \n : New Line Character
- endl : New Line and Flush Buffer
- \t : Tab
- \a : Bell
- \\ : Print a single '\'
- \" : Print a single "
- Program 1.5b More 'cout'
- Program 1.5c Use of 'cin' and the extraction
operator '>>' along with some arithmetic
- Variables and Memory
- cin
- + : Addition Operator
- - : Subtraction Operator