Thread: help makeing header files

  1. #1
    Registered User
    Join Date
    Nov 2001

    Question help makeing header files

    Anyone know any tutorials my book that i bought discused it a little but what i want is to make a header file to shorten my typeing time by doing things that normaly take forever to do a simple function located in my own header file so if you know any tutorials i would appreciate it thx.

  2. #2
    Ben K.


    All you have to do is to make a header file (*.h) and put the function(s) or definitions that you want to use in it. Then use the #include directive to include that header file in a source file. Make sure you make a prototype(the declaration of the function at the top of a source file) for the function(s) in the header file, too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Confusion on header and source files
    By dnguyen1022 in forum C++ Programming
    Replies: 4
    Last Post: 01-17-2009, 03:42 AM
  3. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. more header files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2001, 01:56 PM