Thread: #ifndef xxxx????????????

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    2

    Angry #ifndef xxxx????????????

    Does anyone know what '#ifndef xxxx' means? I need to know for my C++ class and I can't find it anywhere in my book!

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    53
    Someone asked that question recently... this link should take you to the thread ...

    ifndef thread

    If not, it's on the same page as this question at the moment

    Almosthere
    "Technology has merely provided us with a more efficient means for going backwards" - Aldous Huxley

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    53
    Someone asked that question recently... this link should take you to the thread ...

    ifndef thread

    If not, it's on the same page as this question at the moment

    Almosthere
    "Technology has merely provided us with a more efficient means for going backwards" - Aldous Huxley

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    53
    oops.. sorry, back buttons not liked by board
    "Technology has merely provided us with a more efficient means for going backwards" - Aldous Huxley

  5. #5
    Unregistered
    Guest

    Thumbs up

    The #ifndef directive checks for the existence of a manifest constant. If the constant has not been defined, it is immediately defined and the file is included. If the constant has been defined, everything between the #ifndef and #endif directives is skipped.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #ifndef explanation?
    By Zooker in forum C Programming
    Replies: 2
    Last Post: 02-12-2009, 06:59 AM
  2. bitmap conversion from 16x16 to 32x32
    By sharathyd in forum C Programming
    Replies: 6
    Last Post: 01-27-2009, 11:54 PM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  4. Warning on an ifndef directive
    By DavidP in forum C++ Programming
    Replies: 2
    Last Post: 08-02-2007, 01:31 AM
  5. #ifndef
    By paperbox005 in forum C Programming
    Replies: 4
    Last Post: 09-24-2004, 07:25 PM