下面代码会这样报错,哪位能指点下
#include <iostream>
using namespace std;
int t1Run[]={1234,1223};
int main(){
cout<<t1Run<<endl;
return 0;
}
void a(int t1Run){
int a=1000;
cout<<t1Run[1]<<endl;
}
#include <iostream>
using namespace std;
int t1Run[]={1234,1223};
int main(){
cout<<t1Run<<endl;
return 0;
}
void a(int t1Run){
int a=1000;
cout<<t1Run[1]<<endl;
}
把函数a放在main函数前边,问题解决,但是不理解为神么