摘要:
#includeusing namespace std;/* 三 函数提高 3.2 函数占位参数 当前学习阶段,占位参数传入后,也接收不到;现在用不到,后续课程用到*/void func(int a, int){ // 第二个int即为占位参... 阅读全文
posted @ 2021-03-14 15:19
yub4by
阅读(49)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;/* 三 函数提高 3.1 函数默认参数*/// 注意,若某个位置已有了默认参数,则从该参数位置往后的每个参数都必须有默认值,例func(int a, int b, int c=30, d=4... 阅读全文
posted @ 2021-03-14 15:18
yub4by
阅读(17)
评论(0)
推荐(0)