DragonautX DragonautX - 1 month ago 9
C++ Question

How do I find the iostream header file in a Visual Studio C++ project?

I was learning more about header guards in C++ from here. One of the paragraphs there said:


Even the standard library includes use header guards. If you were to
take a look at the iostream header file from Visual Studio, you would
see:

#ifndef _IOSTREAM_
#define _IOSTREAM_

// content here

#endif



I'm interested in finding the iostream header file to see this header guard myself and to learn more about how C++ directories are structured to find files like these. I had a working C++ project in Visual Studio 2015, and in the project directory I tried
dir *iostream* /s
in cmd, but I didn't find anything. How can I find the iostream header file in a Visual Studio 2015 project if it's accessible?

Answer

iostream is not part of your project. It's part of c++ standard library. How about searching your HDD for it?

Comments