April 22nd, 2003, 06:12 PM
fixing corrupted <iostream> header file?
I was using the debugger in VC6 and I stepped into the <iostream> header file and somehow the header file must have gotten corrupted, because now when I try to compile a simple Hello World program, I get 102 errors.
When I click on the first error to take me to the line of code where it's occuring, a new file opens up called
and in that file are a few lines of code that I was working on, not what should be in there.
Can anyone paste the contents of the Ostream file in a reply, so I can copy and paste it back into that file. I noticed that in the Include folder there are two files called Ostream and Ostream.h. Apparently, my problem is in the Ostream file. If it helps you find the file on your computer, the full path on my computer is:
C:\Program Files\C++Microsoft Visual Studio\Vc98\Include\Ostream
Or, should I just reinstall everything?
Last edited by 7stud; April 22nd, 2003 at 06:50 PM.
April 22nd, 2003, 07:33 PM
April 22nd, 2003, 09:37 PM
Thanks a lot. It works on a Hello World program. I hope it works on others! What version of VC6 do you have? I have the Professional Edition, and I'm wondering if I'm going to encounter any future problems.
April 23rd, 2003, 10:30 AM
I have Professional. Let me know if you run into any problems with it. Glad it's working for you.
I sent this to you in exchange for a lifetime supply of Q&A. I'll start sending my Q's soon. Hopefully you'll honor your end of the deal. j/k ;)
April 23rd, 2003, 02:24 PM
Thanks for the help. Everything seems fine. All questions need to be from the first 4 chapters of a beginning C++ book. :)
April 23rd, 2003, 02:51 PM
Which one? I'm reading the TY C++ in 21 Days by Jessie Liberty. Currently on day 2, I hope to cover 2 days 2nite. It's a little hard though w/ my current project schedule to find time. :(
April 23rd, 2003, 09:39 PM
Well, that's the book I first tried to learn C++ with, but when I got to around chapter 8, I threw it in the trash. In my opinion, Jesse Liberty is incompetent. However, with access to a good forum like this, I'm sure you'll be able to work your way through any questions you have. I don't think these types of forums existed when I was trying to learn C++, or maybe I just didn't know about them.
April 23rd, 2003, 10:41 PM
Interesting. sorry to hear that, I was hoping this would be a good cheap refresher book. Oh well, it's been good to me so far but chapters/days 2-4 are pretty unnecessary for my needs. Looks like 5 might not be necessary either but I'll give it a quick read tomorrow. It is good to have a health forum you can count on when you need queries answered.