How to count lines of a file in C++?

后端 未结 7 968
故里飘歌
故里飘歌 2020-12-02 15:53

How can I count lines using the standard classes, fstream and ifstream?

相关标签:
7条回答
  • 2020-12-02 16:47

    You read the file line by line. Count the number of lines you read.

    0 讨论(0)
提交回复
热议问题