会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
P=NP
To be or not to be, this is a question.
博客园
首页
新随笔
联系
订阅
管理
2021年12月11日
C++ - 函数默认参数
摘要: c++规定默认参数必须从函数参数的右边向左边使用,如下: 正确: void fun1(int a, int b=10); void fun2(int a, int b=10, int c=20); 错误: void fun3(int a=5, int b, int c); void fun4(int
阅读全文
posted @ 2021-12-11 13:12 zju_cxl
阅读(38)
评论(0)
推荐(0)
编辑
公告