Ian Toffelmire
2011-06-30 01:40:13 UTC
I have coded question 3, but am getting the following error from the
given code
class Umpire {
// YOU MAY ADD MEMBERS
Umpire( Player::Players &players );
void start();
};
Errors that refer to the Umpire( Player::Players &players ); line:
error C2027: use of undefined type 'Player'
error C2061: syntax error : identifier 'Players'
I currently forward declare the Player class, but cannot seem to
forward declare the Players structure so that this works.
If I were allowed to modify this code, I believe I have found a work
around, but "you may NOT change or remove from any of the GIVEN
interface declarations or add any additional public declarations".
What am I supposed to do with these errors?
Thanks for any help,
Ian Toffelmire
given code
class Umpire {
// YOU MAY ADD MEMBERS
Umpire( Player::Players &players );
void start();
};
Errors that refer to the Umpire( Player::Players &players ); line:
error C2027: use of undefined type 'Player'
error C2061: syntax error : identifier 'Players'
I currently forward declare the Player class, but cannot seem to
forward declare the Players structure so that this works.
If I were allowed to modify this code, I believe I have found a work
around, but "you may NOT change or remove from any of the GIVEN
interface declarations or add any additional public declarations".
What am I supposed to do with these errors?
Thanks for any help,
Ian Toffelmire