函数名与函数的实参重名了。举例如下:
int input = 100;
int test[3]={1,2,3};
int xxj = test(input,test);//绿色的实参test与红色的函数名test重名
改为下面即可正确运行:
int input = 100;
int t[3]={1,2,3};
int xxj = test(input,t);//绿色的实参test与红色的函数名test重名
而形参名字可与函数名称重复没有问题,如下是正确的:
int test(int input,int test[]);
int CCString2BYTEDlg::test(int input,int test[])
{
test[0] = 10;
test[1] = 20;
test[2] = 20;
input +=10;
return input;
}