0
파이썬에서와 같이 C++에서 재정의 할 함수 인수를 선택하는 방법이 있습니까?C++ 두 번째 기본 함수 인수 "overloading"
예제 코드 :
#include <iostream>
using namespace std;
void test(int a=1, int b=1) {}
int main()
{
test(b=2);
cout << "kkk" << endl;
}
아 물론 고맙습니다. – shishkebab