64,685
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
void f(int, ...)
{
cout << "1";
getchar();
f(1, 2);//匹配了谁?
}
void f(int, int, ...)
{
cout << "2";
getchar();
f(1);
}
int main(){
f(1, 2);//匹配了f(T,T...)
return 0;
}