How would I look at a prebuilt header file?
I want to look at the standard library templates.
queue, stack, etc.
How would I find them?
How would I look at the actual code?
Printable View
How would I look at a prebuilt header file?
I want to look at the standard library templates.
queue, stack, etc.
How would I find them?
How would I look at the actual code?
> How would I look at a prebuilt header file?
Use a text editor - the one you use for editing code for example
> How would I find them?
If you're on windows, try the "inc" or "include" directory of wherever the compiler is installed.
On unix/linux, it's usually /usr/include
> How would I look at the actual code?
You can get the source code for GCC based stuff off the net
If you're using a closed compiler like VC++, forget it.
> How would I look at the actual code?
You can get the source code for GCC based stuff off the net
If you're using a closed compiler like VC++, forget it.
I am using msvc++.
does this mean the code is hidden?
if it is a standard library file why would they not let you see the code?
The standard version of msvc++ does not come with the source code, although other versions do (but cost a lot more money).
Have a look in the "crt" directory - if there's a directory in there called "src", then your in luck.