out_stream<< next<< endl; -- what does endl do?
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37
So where do you need the endl? How do you know when that spot is read?
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37
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
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37
Question Answered as of 1 Year Ago by
WaltP