Skip to Main Content
Microsoft Visual C++/CLI Step by Step
book

Microsoft Visual C++/CLI Step by Step

by Julian Templeman
August 2013
Beginner content levelBeginner
540 pages
12h 51m
English
Microsoft Press
Content preview from Microsoft Visual C++/CLI Step by Step

Chapter 5. Decision and Loop Statements

After completing this chapter, you will be able to:

  • Make decisions by using the if statement.

  • Make multiway decisions by using the switch statement.

  • Perform loops by using the while, for, and do-while statements.

  • Perform unconditional jumps in a loop by using the break and continue statements.

All high-level languages provide keywords with which you can make decisions and perform loops. C++ is no exception. C++ provides the if statement and the switch statement for making decisions, and it provides the while, for, and do-while statements for performing loops. In addition, C++ provides the break statement to exit a loop immediately and the continue statement to return to the start of the loop for the next iteration. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Visual C++ Windows Applications by Example

Microsoft Visual C++ Windows Applications by Example

Stefan Bjornander
Visual Basic 2015 Unleashed

Visual Basic 2015 Unleashed

Alessandro Del Sole
Build Windows 8 Apps with Microsoft Visual C++ Step by Step

Build Windows 8 Apps with Microsoft Visual C++ Step by Step

Paolo Pialorsi Luca Regnicoli and Roberto Brunetti

Publisher Resources

ISBN: 9780735675162Purchase book