Need help with varables

This is a discussion on Need help with varables within the C++ Programming forums, part of the General Programming Boards category; I'm working on a game where at least for now just enter 1 for yes or 2 for no and ...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    22

    Need help with varables

    I'm working on a game where at least for now just enter 1 for yes or 2 for no and was wondering each time I have enter 1 or 2 do I need a new varable or can I use the same one over and over?

    Also I want to add combat but I dont have a good plan for it right now if anyone has an idea can they tell me?

    Thank you

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Unless you need to remember the old value of the variable, just reuse it.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    22
    Ok thank you. now just sugestions on the combat,

Popular pages Recent additions subscribe to a feed

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