hey all, hope everyone is doing well
i don't quite understand why i'm getting the error mentioned in the subject line. here's the member function call and definition:
here's the error message:
//member function call and assignation
// . . .
static int x=0;
//defination, Player* is pointing to separate class instance
:\MPROG\sandlot\game.cpp(24) : error C2065: 'mf_lineup_getBatter' : undeclared identifier
C:\MPROG\sandlot\game.cpp(24) : error C2440: 'initializing' : cannot convert from 'int' to 'class Player *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
does my error have something to do with the array subscript?
thanks for your help