out_stream<< next<< endl; -- what doesendl do?
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
So where do you need the endl? How do you know when that spot is read?
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Ahhh, now I see the problem. I didn't look close enough.
... but it moves a line down every time it encounters a white space.
That's the definition of a read using >>. If you want to read a line you need something like getline() .
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944