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

This is a discussion on #ifndef xxxx???????????? within the C++ Programming forums, part of the General Programming Boards category; Does anyone know what '#ifndef xxxx' means? I need to know for my C++ class and I can't find it ...

  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, 05:59 AM
  2. bitmap conversion from 16x16 to 32x32
    By sharathyd in forum C Programming
    Replies: 6
    Last Post: 01-27-2009, 10: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

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