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?
iostream
is not part of your project. It's part of c++ standard library. How about searching your HDD for it?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.