Thread: When to use which?

  1. #1
    Registered User
    Join Date
    Mar 2003

    When to use which?

    Hi all!

    I was wondering when to use structures and when to use enum's? this would be a big help to me if you could respond and would help me understand, which in turn, will probably help me write better programs. thanks!
    #include <Jesus.h>
    It will save your life

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    use structs/classes when defining a new type.
    use enums when u need a list of enumerated constants.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed