Default parameters for the function:
1. The default parameter of the function must be placed to the right of the formal parameter and cannot appear on the right side of the default parameter without the default parameters
2. If the declaration of a function gives the default argument, the implementation of the function cannot define the default parameter
3. When declaring a member function, the default argument is not given, and the implementing member function has a default parameter, which may not be visible at the time of the call (when the function implementation is placed in front of it),
4. Therefore, the default parameters are usually placed in the. h Declaration
Polymorphic---> Overloading (Overload)
The implementation principle of overloading: function name smash
How to find the function name smash:
In the code, declare a function not to implement it, but in the main function to call the function, and then compile, connect to check the code, in the wrong hint can see the name of the function's crush.
C + + lesson Three (2013.10.03)