C++ default parameter memo

The default parameter should be after the parameter without default parameter in the parameter list.
Only one of the default parameters can be filled in the declaration or definition, otherwise an error will be reported.
In the case of quoting header files, not writing default parameters in the function declaration in .h will cause an error.

Guess you like

Origin blog.csdn.net/sinat_27382047/article/details/106991940