Writing .csv files from C++

前端 未结 6 765
走了就别回头了
走了就别回头了 2020-12-23 11:18

I\'m trying to output some data to a .csv file and it is outputting it to the file but it isn\'t separating the data into different columns and seems to be outputting the da

6条回答
  •  天命终不由人
    2020-12-23 11:50

    Change

    Morison_File << t;                                 //Printing to file
    Morison_File << F;
    

    To

    Morison_File << t << ";" << F << endl;                                 //Printing to file
    

    a , would also do instead of ;

提交回复
热议问题