返回信息流rt
这是一条镜像帖。来源:北邮人论坛 / cpp / #5431同步于 2008/4/22
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
vs2005支持变长参数吗?
wcllsn
2008/4/22镜像同步11 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
看到帖子觉得很意外,试了一下没问题啊。2005下过的
#include <iostream>
using namespace std;
int test(int , ...);
int main()
{
cout << test(1,2);
system("PAUSE");
return 0;
}
int test(int a, ...)
{
return 251;
}
【 在 mayao11 的大作中提到: 】
: 看到帖子觉得很意外,试了一下没问题啊。2005下过的
: #include <iostream>
: using namespace std;
: ...................
system("PAUSE") 太恶心了
我也不是很清楚啊
想给一个函数起别名怎么写?
【 在 MHz 的大作中提到: 】
: #define debugf( x ) printf( x )
: 这是预编译指令,只完成代码替换,如果你想用函数调用,请用inline