|
-
Sep 5th, 2001, 10:04 AM
#2
Monday Morning Lunatic
A few things I noticed:
1. Labels? You don't need them unless you're using goto which you shouldn't until you fully understand its implications 
2. Formatting! Don't smack everything on one line because it's a ***** to debug 
3. Stop mentioning god or I'll be forced to go on a murderous rampage round Malvern 
And to solve the actual problem, I don't remember if it automatically opens the file but if it does, then you can't open it twice because it will be opened in the constructor of the fstream object. If it doesn't, you need to open it yourself.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|