void func(int a, int){ cout << "占位参数" << endl; } //占位参数之默认参数 void func2(int a, int =10){ cout << "占位默认参数" << endl; } int main(){ func(1, 1); func2(1); return 0; }
标签:函数,int,void,C++,占位,参数 From: https://www.cnblogs.com/itniwota/p/16901253.html
void func(int a, int){ cout << "占位参数" << endl; } //占位参数之默认参数 void func2(int a, int =10){ cout << "占位默认参数" << endl; } int main(){ func(1, 1); func2(1); return 0; }
标签:函数,int,void,C++,占位,参数 From: https://www.cnblogs.com/itniwota/p/16901253.html