What is the meaning of following declaration?

This is a discussion on What is the meaning of following declaration? within the C Programming forums, part of the General Programming Boards category; Dear All, What is the meaning of following declaration? [code] #ifndef __FPS_CONFIGURATION_PROJECT_CDF_ #define __FPS_CONFIGURATION_PROJECT_CDF_ [\code]...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    What is the meaning of following declaration?

    Dear All,
    What is the meaning of following declaration?

    [code]
    #ifndef __FPS_CONFIGURATION_PROJECT_CDF_
    #define __FPS_CONFIGURATION_PROJECT_CDF_

    [\code]

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,628
    It defines the macro name __FPS_CONFIGURATION_PROJECT_CDF_ if it has not already been defined. It looks like possibly part of a header inclusion guard.

    Incidentally, note that names that begin with an underscore followed by an uppercase letter, or that contain two consecutive underscores, are reserved to the (compiler and standard library) implementation for any use.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 02:49 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM

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