November 2001
Beginner
1128 pages
29h 12m
English
In this chapter you learn
Function basics (review)
Function prototypes
How to pass function arguments by value
How to design functions to process arrays
How to use const pointer parameters
How to design functions to process text strings
How to design functions to process structures
Functions that call themselves (recursion)
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 from ...
Read now
Unlock full access