#include <stdio.h>
#define MAXROW 150
#define MAXLINE 15
main ()
{
float data[MAXROW][MAXLINE];
int i,j;
FILE *infp;
infp=fopen("/home/yanzhen/data/yzh.csv","rw");
fgets(data,MAXLINE.infp);
fclose(infp);
}
以上是我编的程序,可是运行是出错,错误信息为
Multiple markers at this line
- too few arguments to function ‘fgets’
- passing argument 1 of ‘fgets’ from incompatible pointer type
- request for member ‘infp’ in something not a structure or
union
麻烦帮我看下怎么回事,谢谢!