程序运行错误 显示 “process exited with return value 3221225725”
我编写了一个c语言程序,主要目的是将5m。txt 中存放的数据导入一个input 的结构体当中,5m.txt 为3列 1000000 行的数据, 编译显示没有问题,但是运行的时候每次都显示程序出现异常,用dev c++ 显示“process exited with return value 3221225725”. 搞不明白是什么情况, 之前我试过导入 100*100 的txt 文件 没有问题。 不知道是不是数据太大导致的。 请各位高手帮忙看一下,感激不尽。 struct convert
{float C[3][3];};
struct convert con[24]=
{
{1,0,0,0,1,0,0,0,1},
{0,0,-1,0,-1,0,-1,0,0},
{0,0,-1,0,1,0,1,0,0},
{-1,0,0,0,1,0,0,0,-1},
{0,0,1,0,1,0,-1,0,0},
{1,0,0,0,0,-1,0,1,0},
{1,0,0,0,-1,0,0,0,-1},
{1,0,0,0,0,1,0,-1,0},
{0,-1,0,1,0,0,0,0,1},
{-1,0,0,0,-1,0,0,0,1},
{0,1,0,-1,0,0,0,0,1},
{0,0,1,1,0,0,0,1,0},
{0,1,0,0,0,1,1,0,0},
{0,0,-1,-1,0,0,0,1,0},
{0,-1,0,0,0,1,-1,0,0},
{0,1,0,0,0,-1,-1,0,0},
{0,0,-1,1,0,0,0,-1,0},
{0,0,1,-1,0,0,0,-1,0},
{0,-1,0,0,0,-1,1,0,0},
{0,1,0,1,0,0,0,0,-1},
{-1,0,0,0,0,1,0,1,0},
{0,0,1,0,-1,0,1,0,0},
{0,-1,0,-1,0,0,0,0,-1},
{-1,0,0,0,0,-1,0,-1,0},
};
struct bccinput//定义输入数据使用的结构体,存储三个欧拉角
{
float a;
float b;
float c;
};
int main()
{
int X,Y,x,y,i=0;
float fcc[3]={0,0,0},o,p,q,r,s,w,g,h,j;
struct convert part[(mesh/sampling+1)*(mesh/sampling+1)];
clock_t t = clock();
struct bccinput input[Ymax+1][Xmax+1];
FILE *in,*out;
if((in=fopen("C:\\c program\\5m.txt","r"))==NULL) //------------------------------------------------------需要输入导入文件的存放地址
{printf("cannot open file");
exit(0);
}
for(x=0;x<=Xmax;x++)
for(y=0;y<=Ymax;y++)
{fscanf(in,"%f %f %f",&input[y][x].a,&input[y][x].b,&input[y][x].c);
printf("%f %f %f\n",input[y][x].a,input[y][x].b,input[y][x].c);
}
fclose(in);
}