CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    4

    problems coding game with classes

    Hello, I am having trouble with this code for a game that must use classes. I am having trouble especially with the Character class. This class is used throughout the code to increase or decrease money, time and intellegence. Steps must also be increased or decreased. If anyone can tell me what I am doing wrong I would greatly appreciate it. I have not ironed out all the details of the game yet, like I need to add some more loops and things to control the menu's and tell the user if they have won the game, and I have not finished the part where I write the scores to an outside file but I will deal with this stuff when I figure out what it is I am doing with the variables. As is the compiler gives me the following errors.

    Undefined symbol 'inital_time' in function Character::init_character()
    Undefined symbol 'intial_intel' in function Character::init_character() 'initial_intel' is assigned a value that is never used in function Character::init_character()
    'initial_money' is assigned a value that is never used in function Character::init_character()
    'initial_time' is assigned a value that is never used in function Character::init_character()
    Undefined symbol 'initial_time'
    Qualifier 'Encounter' is not a class or namespace name
    Declaration terminated incorrectly
    Qualifier 'Menu' is not a class or namespace name
    Declaration terminated incorrectly

    Thanks so much for the help.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured