通过void func 定义函数的默认值和其可以容纳多少个实参 1 #include <iostream> 2 using namespace std; 3 void func(int a = 11, int b = 22, int c = 33) //为函数 func 设置默认值为11,22,33
posted on 2022-01-12 16:52  咫尺流云  阅读(38)  评论(0编辑  收藏  举报