Hey guys,
So I am trying to make a .. of my custom class 'Gamer'
But the compiler keeps erroring at :
engine_vector.h
virtual int ID(T const &object)
{
for (int index = 0; index < Count(); index++)
{
------------------>> if ((*this)[index] == object)
{
return(index);
}
}
return -1;
}
my code:
DynamicVectorClass<Gamer> Gamers;
#include "engine_io.h"
class Gamer
{
public:
//Gamer();
Gamer(const char *Nick);
StringClass PlayerName;
int Deaths;
int CurrentKills;
};
Gamer::Gamer(const char *Nick)
{
PlayerName = Nick;
}
I have no idea why this is not working...
any help is appreciated!
[Updated on: Sat, 10 September 2011 13:50]
Report message to a moderator