Thread: header .h files

  1. #1
    Unregistered
    Guest

    Post header .h files

    I looked at snippits and found out they had new header files with new functions, how is this done.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    61
    What????????????

  3. #3
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Post ...

    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:
    Code:
    char hoomabuma[255] = "BLAH BLAH BLAH!!!";
    blah.cpp
    Code:
    #include <stdio.h>
    #include "blah.h"
    
    void main()
    {
         printf(hoomabuma);
    }
    Hope this helps, you should also get a book or have someone teach you.

    SPH

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    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.

  5. #5
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Cool ...

    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  2. Missing header files and libraries with Borland
    By quagsire in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2003, 06:19 AM
  3. placement of (.h) and (.cpp) files..!?
    By matheo917 in forum C++ Programming
    Replies: 3
    Last Post: 02-22-2003, 06:37 PM
  4. Header files
    By Jez_Master in forum C++ Programming
    Replies: 2
    Last Post: 04-08-2002, 07:56 AM