Skip to main content

Timeline for Pset4 Recover not working

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Apr 25, 2017 at 12:33 comment added Jason_V Ok, I reversed my edit. I also finally figured out my problem. The code works perfectly now! :D Thanks for your help on my previous question.
Apr 25, 2017 at 6:03 comment added Cliff B No. But if you'll roll back the edit to preserve the original question, and create a new question (it's a new problem you need help with) along with explanation, that's a different matter. ;-)
Apr 25, 2017 at 5:06 comment added Jason_V Thanks for the help. I fixed my code and ironed out some bugs, but it still doesn't open the files! Can you help me identify an error? The code is above:
Apr 25, 2017 at 3:38 vote accept Jason_V
Apr 24, 2017 at 23:25 history edited Cliff B CC BY-SA 3.0
added 1160 characters in body
Apr 24, 2017 at 23:14 comment added Cliff B Look at where the var eof is declared. The scope is bound by the curly brace pair that it is inside of - the opening curly brace that follows the main() statement and the closing curly brace that defines the end of main(). That means it is in scope from the point where it is created until the end of the program. Scope doesn't end when a new opening curly brace is encountered, it is defined by the pair that immediately surrounds the variable, even though that pair may surround the entire program, or even if there are more pairs that surround a subset of the program, like a while loop.
Apr 24, 2017 at 21:49 comment added Jason_V Then why does my do-while terminate when the variable eof changes, the change in eof being inside the confines of an if statement?
Apr 24, 2017 at 6:24 history answered Cliff B CC BY-SA 3.0