Course Web Pages
Related LinksFree eBooks
|
Special FunctionsThe videos below explain how to write functions with default arguments, overloaded functions, and inline functions. The examples are taken from Beginning C++ Through Game Programming, by Michael Dawson. Creating and using default arguments Overloaded functions Inline functions MadLib ExerciseWrite a program with two overloaded functions named multiply. The function prototypes for the functions should look like this:
The first function should output the product of its two inputs. The
second function should output the string |