摘要: #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... 阅读全文
posted @ 2012-08-09 15:54 likebeta 阅读(556) 评论(0) 推荐(0) 编辑