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.
In this chapter, you will see how to use these statements to control the flow of execution through a C++/CLI application.
Read the complete chapter here: https://www.microsoftpressstore.com/articles/article.aspx?p=2222444.