Murach's C++ 2008
How to code control structures

First, this chapter shows you how to control program execution and repetitive processing by using conditional statements and various types of loops. Then, it shows you some special debugging techniques for programs with loops in the context of a new application.

Chapter 5 How to code control structures
How to code Boolean expressions 126
How to use the relational operators 126
How to use the logical operators 128
How to code conditional statements 130
How to code if-else statements 130
How to code switch statements 132
An enhanced version of the Invoice Total application 134
How to code loops 136
How to code while and do-while loops 136
How to code for loops 138
Loops that use break and continue statements 140
Debugging techniques for programs with loops 142
The Future Value application 144
The design and property settings for the form 144
The code for the form 146




Murach's C++ 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.