 |
c++ - Using getline to read from text file leads to infinite loop ...
2013年2月26日 - while(getline(txt,title_buffer)) { static int counter = 1; //getline(title_buffer, buffer_size); .... You need to put eof condition in the internal for loop.
stackoverflow.com |
 |