+ 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

7th Nov 2021, 5:39 PM
Kareem Idris
1 Respuesta
+ 1
Okay i inserted the code
8th Nov 2021, 11:53 PM
Kareem Idris