The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
fixing corrupted <iostream> header file?
Discuss fixing corrupted <iostream> header file? in the C Programming forum on Dev Shed. fixing corrupted <iostream> header file? C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 22nd, 2003, 05:12 PM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 1,365

Time spent in forums: 18 h 20 m 28 sec
Reputation Power: 14
|
|
|
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
c:\...\Vc98\Include\Ostream
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?
Thanks.
Last edited by 7stud : April 22nd, 2003 at 05:50 PM.
|

April 22nd, 2003, 06:33 PM
|
|
Contributing User
|
|
Join Date: Apr 2003
Location: United States
Posts: 46
Time spent in forums: 20 m 55 sec
Reputation Power: 11
|
|
hope this helps!
|

April 22nd, 2003, 08:37 PM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 1,365

Time spent in forums: 18 h 20 m 28 sec
Reputation Power: 14
|
|
|
tOeJaM,
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, 09:30 AM
|
|
Contributing User
|
|
Join Date: Apr 2003
Location: United States
Posts: 46
Time spent in forums: 20 m 55 sec
Reputation Power: 11
|
|
7stud,
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, 01:24 PM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 1,365

Time spent in forums: 18 h 20 m 28 sec
Reputation Power: 14
|
|
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, 01:51 PM
|
|
Contributing User
|
|
Join Date: Apr 2003
Location: United States
Posts: 46
Time spent in forums: 20 m 55 sec
Reputation Power: 11
|
|
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, 08:39 PM
|
|
Contributing User
|
|
Join Date: Feb 2001
Posts: 1,365

Time spent in forums: 18 h 20 m 28 sec
Reputation Power: 14
|
|
|
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.
Good luck.
|

April 23rd, 2003, 09:41 PM
|
|
Contributing User
|
|
Join Date: Apr 2003
Location: United States
Posts: 46
Time spent in forums: 20 m 55 sec
Reputation Power: 11
|
|
|
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.
L8r man
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|