// File: player.cpp // // This file has the implementations of some // of the member functions in the Player class. // Students are supposed to implement the rest. // Those other implementations belong in a different // file. #include "player.h" using namespace std ; // Constructors Player::Player () { name = "" ; medianRating = 0 ; } Player::Player (const string& x) { name = x ; medianRating = 0 ; } // Overloaded assignment Player& Player::operator = (const Player& rtside) { if ( this != &rtside) { // if not self assignment name = rtside.name ; record = rtside.record ; medianRating = rtside.medianRating ; } return *this ; }