摘要:
#include <iostream>#include <cstdarg>using namespace std;typedef int (*PCALLBACK)(int nCount,va_list vlist);int addInt(int nCount,va_list vlist){ int sum = 0; for (int i=0;i<nCount;i++) { sum+=va_arg(vlist,int); } return sum;}void func(PCALLBACK pCall,int nCount,...){ va_lis... 阅读全文