All pastes #2130786 Raw Edit

Mine

public text v1 · immutable
#2130786 ·published 2012-03-20 17:31 UTC
rendered paste body
int& List::access(char *player) {

	Node *tmp = this->head;
	while(tmp) {

		if (strcmp(tmp->getName(), player) == 0) {
			int i = tmp->getScore();
			return i;
		}
		else
			tmp = tmp->getNext();

	}
	int i = -1;
	return i;

}