ENGR 101 Lecture Notes - Lecture 13: Oneword, Relational Operator, Standard Streams
Document Summary
Engr 101: intro to computers and programming - lecture 13: simple io, selection, Typically standard output, cout (the screen), or a file. Text is output using string literals which are enclosed in quotes . To skip output out the next line, use an end of line command (end) Typically standard input, cin (keyboard) or a file. Both << and >> have lower precedence than the mathematical operators. Expects an identifier on the left and an expression on the right. Expression is evaluated and the value is placed in the memory location associated with the identifier. A condition is an expression that will evaluate to either true or false. Usually involves a relational operator as part of an expression. The c++ compiler recognizes the literal expressions true and false . Boolean values and there is a simply type bool that can only adopt these two values. True evaluates to 1 and false evaluates to 0.