Thread: C header files?

  1. #16
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    You can move this
    >int var = 2;
    into one of the .c files, and in the header file have this
    >extern int var;
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  2. #17
    Registered User
    Join Date
    Dec 2001
    yeahhh, I ve just figured that out and want to post it...
    thanks anyway Hammer
    I ve got alot of very helpful response from this board

    btw, i ve just voted for u ^_^


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. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 07:12 PM
  4. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM