Monday, May 24, 2010

Where is the iostream file located?

I just installed Microsoft Visual C++ 6.0 on my computer for a C++ class. One of the assignments is to open up the physical IOSTREAM file and see what's actually inside. I searched for the terms iostream, iostream.h, %26lt;iostream%26gt;, and #include %26lt;iostream%26gt; on my computer, but i got back nothing. Also, I personally searched in the program file called Microsoft Visual Studio, nothing there either. Can someone please give me the adress (as in C:\Program Files.....) for the iostream library? or maybe an idea as to where to look?





also, I'm using Windows XP, if that helps.

Where is the iostream file located?
Here is a path on my Visual Studio 8 (2005)





C:\Program Files\Microsoft Visual Studio 8\VC\include





Hope that helps





RJ
Reply:On my system,





c:\Program Files\Microsoft Visual Studio\VC98\Include





E-mail me if you want me to send it to you.
Reply:I'll make two points worth noting. The first is, when looking for any of the standard library files (like iostream), look for it in the compiler's default include directory. You should see a folder somewhere in the Visual C++ folder for Include, so that's where it is. Because this is Visual C++ 6 (old), it's iostream.h, not iostream. I really recommend getting a modern compiler like MinGW or Visual C++ 2005.





Also, there is a second note worth mentioning. You aren't going to see source code in the iostream file. It has already been compiled and gets linked in when building your code. You will only see the headers, which contains some constant definitions, typedefs, and inlined code.


No comments:

Post a Comment