一个简单的问题,能说明白就送分!
来看看下面这几行代码,大家能找出编译时会出现什么错误吗?为什么会有这样的错误。谢谢
#include "stdafx.h"
#include "iostream.h"
void test2(int) ;
int main(int argc, char* argv[])
{
int xxxx[]={51,87,91,67};
test2(xxxx);
cout << "输出值为:" << xxxx[1] <<"\n";
return 0;
}
void test2(xxxx)
{
xxxx[1]-=10;
return;
};