083.函数高级-函数的占用参数


#include 
using namespace std;

//占位参数
//返回值类型 函数名(数据类型){}
//目前阶段的占位参数我们还用不到,后面课程中会用到
//占位参数还可以有默认参数
void func(int a, int = 10)
{
    cout << "hello word" << endl;
}
int main()
{
    func(10);
    system("pause");
    return 0;
}
C++