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