Thread: Creating a header file

  1. #1
    Registered User
    Join Date
    Oct 2001

    Creating a header file

    Hi, I am currently studying 'C' and I was just wondering how do I create user defined header files.

  2. #2
    Registered User Dr. Bebop's Avatar
    Join Date
    Sep 2002
    Just create a file with a .h extension and throw declarations into it.
    /* header.h */
    /* Inclusion guards to make sure the header
        is only included once. Any more is an error */
    #define TRUE (1==1)
    #define FALSE !TRUE
    typedef int bool;
    void function();
    int another_function( int, float );
    Processing error: Stupidity detected.
    Dr. Bebop
    Windows XP Professional Ed.
    Microsoft Visual Studio 6

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Need help understanding Header Files
    By Kaidao in forum C++ Programming
    Replies: 11
    Last Post: 03-25-2008, 10:02 AM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. creating a header file problems
    By ssjnamek in forum C++ Programming
    Replies: 13
    Last Post: 12-03-2003, 11:29 AM