VC 实现传入不定参数个数 字符串输出

来源:互联网 发布:js中jsonarray 编辑:程序博客网 时间:2024/05/20 06:29
//方法void Debug(char *text,...){char buf[1024];va_list ap;va_start(ap,text);vsprintf(buf,text,ap);va_end(ap);MessageBox(NULL,buf,NULL,NULL);}//调用Debug("%d,%d,%s",1,1,"123123");

0 0
原创粉丝点击