5. Loops and Relational Expressions
In this chapter you’ll learn about the following:
• The for
loop
• Expressions and statements
• The increment and decrement operators: ++
and --
• Combination assignment operators
• Compound statements (blocks)
• The comma operator
• Relational operators: >
, >=
, ==
, <=
, <
, and !=
• The while
loop
• The typedef
facility
• The do while
loop
• The get()
character input method
• The end-of-file condition
• Nested loops and two-dimensional arrays
Computers do more than store data. They analyze, consolidate, rearrange, extract, modify, extrapolate, synthesize, and otherwise manipulate data. Sometimes they even distort and trash data, but we’ll try to steer clear of that kind of behavior. To perform their manipulative ...
Get C++ Primer Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.