Professional Documents
Culture Documents
http://www.ece.iastate.edu/~alexs/classes/2009_Fall_185/
Administrative Stuff
• HW4 is out.
• http://www.cplusplus.com/reference/clibrary/cstdio/printf.html
[Figure 3.20 from the textbook]
[Figure 3.19 from the textbook]
[Figure 3.22 from the textbook]
[Figure 3.24 from the textbook]
Data Areas After Call scale(num_1, num_2);
main() myFunction()
myFunction();
doIt(); helpMe();
if ( condition )
statement;
condition
evaluated
true
false
statement
== equal to
!= not equal to
< less than
> greater than
<= less than or equal to
>= greater than or equal to
a !a
true false
false true
a && b
a || b
a b a && b a || b
true true true true
true false false true
false true false true
false false false false
total < MAX found !found total < MAX && !found
false false true false
false true false false
true false true true
true true false false
if ( condition )
statement1;
else
statement2;
condition
evaluated
true false
statement1 statement2