//一个很短的代码,不知道为什么在fclose的地方报错,代码如下: #include <string.h> #include <math.h> #define LINE 1024 #define NAME 1024 #include "time.h" #include "omp.h" #include <complex.h> int res_extend(char *fin, char *fout, int threads) { unsigned char cbuf[LINE]; float fbuf[LINE]; float **raw_array,**back_array,**patterson_array; int i,j; int n; FILE *input=NULL,*output=NULL; srand((unsigned) time(NULL)); //open input output and gain file printf("Start res_extend|\ninput %s output %s \n",fin,fout); if ((input=fopen(fin, "r"))==NULL) { printf("open file error!!\n"); return 0; } //calculate the size of the input