摘要: 函数默认参数 在C++中,函数的形参列表中的形参是可以有默认值的 语法: 返回值类型 函数名 (参数 = 默认值){} #include <iostream> using namespace std; int func (int a, int b = 10, int c = 10) //某个位置有了 阅读全文
posted @ 2021-08-04 14:24 白藏i 阅读(30) 评论(0) 推荐(0)