Thread: #if out main

  1. #1
    dgericson
    Guest

    #if out main

    hey i was just wondering how one would #if / #endif out main. Would i need to #define a symbol or something? thanks guys . dana e

  2. #2
    booyakasha
    Join Date
    Nov 2002
    Posts
    208
    yes you could define a symbol

    #ifndef _MAIN
    #define _MAIN

    blah blah blah;

    #endif

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why To Use int main()
    By year2038bug in forum C Programming
    Replies: 2
    Last Post: 08-19-2005, 01:28 PM
  2. passing params to main()
    By mike11 in forum C++ Programming
    Replies: 14
    Last Post: 06-21-2005, 12:36 PM
  3. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  4. Int Main or Void Main?
    By FromHolland in forum C++ Programming
    Replies: 9
    Last Post: 06-12-2003, 04:29 PM
  5. int main (), main (), main (void), int main (void) HELP!!!
    By SmokingMonkey in forum C++ Programming
    Replies: 7
    Last Post: 05-31-2003, 09:46 PM