ENGR 101 Lecture Notes - Lecture 13: Oneword, Relational Operator, Standard Streams

116 views2 pages
31 Mar 2015
School
Department
Course

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents