wow there are more and more of these poping up every week...
i wish there was some kinda warning message when people register
wow there are more and more of these poping up every week...
i wish there was some kinda warning message when people register
LB0: * Life once school is done
LB1: N <- WakeUp;
LB2: N <- C++_Code;
LB3: N >= Tired : N <- Sleep;
LB4: JMP*-3;
Originally posted by skipper
Tur13o,
Header files contain a collection of "library" files (functions).
For example, sqrt() is a library (.lib) function contained in the header file <cmath>.
When the compiler sees a preprocessor directive such as #include <cmath>, those files (functions) are added to your code.
(Yes, all of them!)
When you elect to access a particular pre-defined function, the compiler looks to see if the appropriate header file has been "included". If it has, you're "golden". If not, you score a compiler error.
That is, you've attempted to access a function that's not part of your code.
Not an elegant explanation, but I hope it helps.
Not so sure about the accuracy of all of those statements...
Endo,
I'm open to polite, constructive criticism. Where am I in error regarding header files?
"When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow
I dont see anything wrong except for you calling the functions library files.
They are defined in the library files but they ARE not library files;
ErionD,
Thanks for the input.
I didn't think I was way off-base in my response but I do appreciate you pointing out my "goof".
"When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow