关于printf函数的参数问题,简单?!请看看^_^
fi9 2002-09-13 01:52:41
#include <stdlib.h>
#include <stdio.h>
int MyPrintf(int a, ...)
{
fPrintf(stdout, "%d", a);
/*Here, What can I Use ...?!(我怎么用...里面的参数?!)*/
return 0;
}
int main(int n, char *p[])
{
MyPrintf(1, 2, 3, 4, 5);
return 0;
}
/*
或者哪位有更加好的方法,请谈谈
最好大家的方法是ANSI标准的
我想在Windows, Unix, Linux都能通过
像VC BCB GCC等都能通过
*/