How to make std::getline() include last empty line?

前端 未结 0 974
慢半拍i
慢半拍i 2021-01-23 12:09

When using std::getline to read lines from a file, I need it to pick up each blank line at the end of the file.


    //add each line to lines
    while (std::getl         


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