c++ program for reading an unknown size csv file (filled only with floats) with constant (but unknown) number of columns into an array

后端 未结 4 1838
别那么骄傲
别那么骄傲 2021-01-16 09:24

was wondering if someone could give me a hand im trying to build a program that reads in a big data block of floats with unknown size from a csv file. I already wrote this i

4条回答
  •  灰色年华
    2021-01-16 09:53

    int fclose(infile);
    

    This line is wrong. The compiler thinks you're trying to initialize the variable fclose with a FILE*, which is wrong. It should be this if you're simply trying to close the file:

    fclose(infile);
    

提交回复
热议问题