123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
- #include <iostream>
- void func(int &a)
- {
- std::cout << "func(int &a)的 调用" << std::endl;
- }
- void func(const int& a)
- {
- std::cout << "func(const int &a)的 调用" << std::endl;
- }
- void func2(int a, int b = 10)
- {
- std::cout << "func2(int a, int b) 的调用" << std::endl;
- }
- void func2(int a)
- {
- std::cout << "func2(int a) 的调用" << std::endl;
- }
- int main()
- {
-
-
-
-
- func2(10, 20);
- system("pause");
- return 0;
- }
|