Basics « Function « C++

1.Class as a return typeClass as a return type
2.Another example of a conversion functionAnother example of a conversion function
3.Computes the factorial of an integer iteratively: a loop, and recursively
4.A C++ program with several functionsA C++ program with several functions
5.Throwing an exception from a functionThrowing an exception from a function