C++ ifstream reads a non existing newline at the end

前端 未结 0 610
生来不讨喜
生来不讨喜 2021-01-03 23:22

I made a basic C++ program to read a one line text file that does not include any newline character which looks like this:

ifstream ifs;
ifs.open(filename);
c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题