Wrox Press C++ Tutorial
Chapter 5 - More About Program Structure
In the previous chapter, you learned about the basics of defining functions and the various ways in which data can be passed to a function. You also saw how results are returned to a calling program.
In this chapter, we will cover the further aspects of how functions can be put to good use, including:
-
What a pointer to a function is
-
How to define and use pointers to functions
-
How to write a function to manage dynamic memory allocation errors
-
How to define and use arrays of pointers to functions
-
How to write multiple functions with a single name to handle different kinds of data automatically
-
What function templates are and how you define and use them
-
How multi-file programs are structured and how to refer to a variable defined in another file
-
How to declare and use your own namespaces
© 1998 Wrox Press