Thread: defining macros or static variables

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Well these things have advantages and disadvantages. How would it be used?

    the struct is good if you want to fill it up with options and then pass it all at once to the set thing.

    the namespace is good if you only want one set of configurations.

    the OOP get/set method is good if you put it in a function.

    The overloaded constructor is good if you're using OOP.
    Last edited by robwhit; 08-04-2008 at 02:18 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. Static variables + Initialisation
    By kris.c in forum C Programming
    Replies: 2
    Last Post: 07-08-2007, 02:16 AM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  4. Replies: 5
    Last Post: 11-19-2002, 07:49 PM
  5. Replies: 2
    Last Post: 12-25-2001, 04:18 PM