Summary


This chapter introduced to you the fundamentals of functions. Functions are the building blocks of any program. In this chapter, you were shown how to create functions, prototype functions, and then call functions. You were also shown how to pass parameters to functions and get return values. At this point, you should be comfortable with creating and using functions in C++.

In addition to the basics of creating and functions, we explored function overloading, parameters, and passing by reference. This material should be sufficient to make you comfortable with creating and using C++ functions. Finally, you were introduced to C++’s rich set of math functions, its time functions, and the random number generation. This should give you a solid understanding of C++ functions.




C++ Programming Fundamentals
C++ Programming Fundamentals (Cyberrookies)
ISBN: 1584502371
EAN: 2147483647
Year: 2005
Pages: 197
Authors: Chuck Easttom

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net