能干手链

文章
4
资源
0
加入时间
3年0月28天

函数占位参数

1.C++中函数的形参列表里可以有占位参数,用来做占位,调用函数时必须填补该位置2.语法: 返回值类型 函数名(数据类型){ }#include<iostream>using namespace std;//函数占位参数,占位参数也可以有默认参数 //占位参数还可以有默认参数 比如void func(int a, int )void func(int a, int ){ cout << "this is func" &