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?
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?
"Hence to fight and conquer in all your battles is not supreme excellence;
supreme excellence consists in breaking the enemy's resistance without fighting."
Art of War Sun Tzu
> 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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
> 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?
"Hence to fight and conquer in all your battles is not supreme excellence;
supreme excellence consists in breaking the enemy's resistance without fighting."
Art of War Sun Tzu
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.