哪里出错了,结果是多少呢? C:\Windows\System32\111.cpp(4) : error C2078: too many initializers 执行
哪里出错了,结果是多少呢? C:\Windows\System32\111.cpp(4) : error C2078: too many initializers 执行
日期:2012-12-28 19:43:38 人气:3
#include
void f(int* x,int b);
void main()
{int a=3,b=5;
f(&a,b);
printf("\n%d,%d",a,b);
}
void f(int *x,int b)
{
*x+=2;
b++;
}
你调用函数的时候错了,另外先定义一个函数原型,函数没有返回值用void定义,VC6.0调试通过