Chapter 23: | How To Solve Definition Ordering Problems with Function Prototypes |
You know that C++ ordinarily requires you to define functions before you use them. Sometimes, however, functions refer to each other, which means you must learn to use C++'s function prototype mechanism to solve ordering problems.
So that you see the need for function prototypes, you learn about a set of three cooperating functions that provide an alternative to the rabbit-computing function that was introduced in Chapter 22.