Browse Source

删除 '2、函数占位参数.cpp'

Creamo 2 years ago
parent
commit
58c94b86d2
1 changed files with 0 additions and 33 deletions
  1. 0 33
      2、函数占位参数.cpp

+ 0 - 33
2、函数占位参数.cpp

@@ -1,33 +0,0 @@
-//函数占位参数
-// 
-//C++中函数的形参列表里可以有占位参数,用来做占位,调用函数时必须填补该位置
-
-//语法 : 返回值类型  函数名  (数据类型) {}
-
-//目前阶段的占位参数还用不到
-//占位参数还可以有默认参数
-
-#if(0)
-
-#include <iostream>
-
-void func(int a , int = 10)    //第二个int起到了占位作用
-{
-
-	std::cout << "This is func" << std::endl;
-
-}
-
-int main()
-{
-
-	func(10);
-
-
-	system("pause");
-
-	return 0;
-
-}
-
-#endif