Tuesday, 6 August 2013

An odd error appears when I try to compile about the stl_construct.h which is an internal header file so why does the error appear there?

An odd error appears when I try to compile about the stl_construct.h which
is an internal header file so why does the error appear there?

So this is my header file for a highscore class used to interface scores
to compare between different players.
#ifndef SCORES_H_INCLUDED
#define SCORES_H_INCLUDED
class comparable //superclass
{
public:
virtual void compare();
virtual ~comparable();
}
class Player: public comparable // subclass
{
public:
Player();
virtual ~Player();
virtual void compare(comparable& other);
void getscore();
void getname();
private:
std::string player_name;
int player_score;
}

No comments:

Post a Comment