Home > Back-end >  C read and write files and process the data in a row, with a comma
C read and write files and process the data in a row, with a comma

Time:10-02

Help eldest brother, c + + read TXT file, each row data processing computing (like sorting, and so on), in another TXT file
Among them, read the file is probably this
1256, 59.25, 653.25
,95.63 2, 566.70, 89.36
3,52.36, 458.26, 89.30
4,58.23, 93.22, 896.23

CodePudding user response:

Using getline functions

CodePudding user response:

Using getline functions

CodePudding user response:

Fstream, speaking, reading and writing files, use the STD: : string according to the ", "break up, and then calculate
  • Related