Saturday, April 18, 2015

C++ Optional Parameter

You can make an optional parameter by giving it a default value. Important note: you need to do it in the header declaration.

Reference: http://stackoverflow.com/questions/2842928/default-value-of-function-parameter

No comments:

Post a Comment