RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment