+ 2
Why is it that when i stream a file with getline(), i don't get the last sentence in the file? Is it because of the stream?
An example of the file: (1)little harry went to school. (2)Then he learned math. 3) it was fun. Output: only line 1, and 2 are returned, and line 3 is ignored completely. https://code.sololearn.com/cdGiIRiDrH4y/?ref=app
2 Antworten
+ 1
Okay i inserted the code