Chapter 7. FUNCTIONS—C++'S PROGRAMMING MODULES
You will learn about the following in this chapter:
Function basics (review)
Function prototypes
Passing function arguments by value
Designing functions to process arrays
Using const pointer arguments
Designing functions to process text strings
Designing functions to process structures
Functions that call themselves (recursion)
Pointers to functions
Fun is where you find it. Look closely, and you can find it in functions. C++ comes with a large library of useful functions (the standard ANSI C library plus several C++ classes), but real programming pleasure comes with writing your own. In this and the next chapter you'll examine how to define functions, convey information to them, and retrieve information ...
Get The Waite Group's C++ Primer Plus, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.