7. Functions: C++’s Programming Modules
In this chapter you’ll learn about the following:
• Function basics
• Function prototypes
• Passing function arguments by value
• Designing functions to process arrays
• Using const
pointer parameters
• Designing functions to process text strings
• Designing functions to process structures
• Designing functions to process objects of the string
class
• 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 functions. (On the other hand, real programming productivity ...
Get C++ Primer Plus 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.