|
-
May 15th, 2012, 05:11 PM
#15
Re: how does getline() know what line it's getting???
 Originally Posted by LMHmedchem
Am I missing the point here? I have attached my src and test files if anyone is interested.
When you start comparing boolean values with false, it's either time to get some sleep or you've missed the point. 
The loop runs as long as both bools are true. That means that after the loop, at least one of the bools is false. If both are false, the two files have the same number of lines. So only if exactly one of the two is true, you have an error. Now you pick which conditional expression matches that situation.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|