【发布时间】:2017-01-16 18:00:02
【问题描述】:
有没有办法像在 Python 中一样选择在 c++ 中覆盖哪些函数参数?
示例代码:
#include <iostream>
using namespace std;
void test(int a=1, int b=1) {}
int main()
{
test(b=2);
cout << "kkk" << endl;
}
【问题讨论】:
标签: c++ default-arguments