Overloaded condition: The function parameter type and number are different, the return value is not considered. Cases:
void f (int i); void F (double i);
One, float and double conditions:
void F (float i); void F (double i);
If you enter a floating-point number, there is no justification, and void f (double i) is called because: in C + +, the floating-point numbers are converted to double types. If you enter: 10, there are many meanings, because the compiler does not know how to convert.
Ii. cases of Char and unsigned char
void Char c); void F (char c);
If the input: F (' C ') is not justified, but the input F (88) will produce a more semantic.
Three, the function uses the default parameter to produce the multi-meaning
void F ( in I,int j=1); void f (int i);
Entering F (20) will result in a lot of justification.
Multi-justification for C + + overloading