Hi, I am currently studying 'C' and I was just wondering how do I create user defined header files.
Hi, I am currently studying 'C' and I was just wondering how do I create user defined header files.
T
Just create a file with a .h extension and throw declarations into it.
Code:/* header.h */ /* Inclusion guards to make sure the header is only included once. Any more is an error */ #ifndef BIG_NASTY_MANGLED_NAME__H #define BIG_NASTY_MANGLED_NAME__H #define TRUE (1==1) #define FALSE !TRUE typedef int bool; void function(); int another_function( int, float ); #endif
Processing error: Stupidity detected.
------------------------------
Dr. Bebop
Windows XP Professional Ed.
Microsoft Visual Studio 6