class RatedPlayer : public TableTennisPlayer
{
private:
unsigned int rating;
public:
RatePlayer(unsigned int r= 0 ,const char *fn = "none",const char *ln ="none",bool ht=false);
RatedPlayer(unsigned int r,const TableTennisPlayer & tp);
unsigned int Rating() { return rating;}
void ResetRating(unsigned int r) { rating = r;}
};
关键点:
RatedPlayer(unsigned int r,const TableTennisPlayer & tp);