GEP-Assignment1/RankManager.cpp
Player* RankManager::userExist(vector<Player*> players, string username) {
	for (Player *p : players) {
		if (username.compare(p->getUserName()) == 0) {
			return p;
		}
	}
	return nullptr;
}
/* Checks if a player with a specific username exist within the vector players. It returns a reference to the user if they exist,
	otherwise it returns nullptr. */
Checks if a player with a specific username exist within the vector players. It returns a reference to the user if they exist,
otherwise it returns nullptr.
Checks if a player with a specific username exist within the vector players . It returns a reference to the user if they exist otherwise it returns nullptr .
Player* RankManager::userExist(vector<Player*> players, string username) {
	for (Player *p : players) {
		if (username.compare(p->getUserName()) == 0) {
			return p;
		}
	}
	return nullptr;
}
Player * RankManager :: userExist ( vector < Player * > players , string username ) { for ( Player * p : players ) { if ( username . compare ( p -> getUserName ( ) ) == 0 ) { return p ; } } return nullptr ; }
Checks if a player with a specific username exist within the vector players.
Checks if a player with a specific username exist within the vector players .