C header files?

This is a discussion on C header files? within the C Programming forums, part of the General Programming Boards category; You can move this >int var = 2; into one of the .c files, and in the header file have ...

  1. #16
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    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
    Posts
    25
    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 ^_^

    CyC|OpS

Page 2 of 2 FirstFirst 12
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, 11:21 AM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 06:12 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21