I looked at snippits and found out they had new header files with new functions, how is this done.
I looked at snippits and found out they had new header files with new functions, how is this done.
What????????????
Obviously you are not firmilliar with the C++ language, I am jsut wondering why u are on the windows board asking about something as simple has how a header file works? A header file is just another C++ file... exept it is put directly into the includer cpp file.
Example:
blah.h:
blah.cppCode:char hoomabuma[255] = "BLAH BLAH BLAH!!!";
Hope this helps, you should also get a book or have someone teach you.Code:#include <stdio.h> #include "blah.h" void main() { printf(hoomabuma); }
SPH
Come on guys, the purpose of the boards isn't to flame newbies! There are really 2 different kinds of header files you will run across. The standard c/c++ functions (read about the ANSI standards for c and c++) and the ones that you or someone else makes that have your prototypes, variables, handy functions etc. They are really the same thing except for the standard header files give your compiler explicate instructions for compilation. Meaning that the MSVC++ iostream.h may not be exactly as the Borland C++ iostream.h is written. Consult your compiler manual, book on c++, c++ teacher, whatever it is that you consult for further info.
I was'nt flaming him... I was just trying to help. And a standard header is the same as a manually made one, they are all made by people, anything that can be done in a standard h, it can be done by you.
SPH