Wrox Press C++ Tutorial


Summary

In this chapter, you've learned about the basics of program structure. You should have a good grasp of how functions are defined, how data can be passed to a function and how results are returned to a calling program. Functions are fundamental to programming in C++, so everything we do from here on will involve using multiple functions in a program. The key points that you should keep in mind about writing your own functions are these:

The use of references as arguments is a very important concept, so make sure you are confident about using them. We'll see a lot more about references as arguments to functions when we look into object-oriented programming.


© 1998 Wrox Press