4.1. Introduction

In this chapter, we introduce C++’s if, if...else and while control statements. We devote a portion of this chapter (and Chapters 57) to further developing the GradeBook class. We add a member function that uses control statements to calculate the average of a set of student grades and we introduce C++’s assignment, increment and decrement operators.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.