Undeclared indentifier
Feb 17, 2013 at 1:53am UTC
Can someone explain to me why "Team" and "NUM_MEMBERS" are undeclared indentifiers? I'm not sure I understand why it's giving me errors for those.
1 2 3 4 5 6 7
//Function Prototypes
void initialize (vector <Team> & tV, const int ID [],
const string m[][NUM_MEMBERS], int arraySize);
void printList (const vector <Team> & tV);
void menu ();
void add (vector <Team> &tV);
int search (const vector <Team> &tV, unsigned int size, int ID);
Thank you for those willing to help me.
Feb 17, 2013 at 2:04am UTC
Are Team and NUM_MEMBERS defined before those declarations?
Last edited on Feb 17, 2013 at 2:04am UTC
Feb 17, 2013 at 3:06am UTC
Make sure that NUM_MEMBERS has been defined and initialized. Same applies for Team although, you may have to #include the header file for Team (if it exists).
Feb 17, 2013 at 3:14am UTC
Ok i got it guys, thanks a bunch!
Topic archived. No new replies allowed.