Home Segments Index Top Previous Next

Chapter 17:

How To Perform Tests Using Numerical Predicates

In this chapter and the next several chapters, you set classes and class objects aside, temporarily, to learn how to do routine testing and branching, iterating and recursing, and array access. You see that C++'s mechanisms for accomplishing such tasks are not much different from those that you would find in just about any programming language. In particular, in this chapter, you learn how to test numbers.