Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Player::addMatchDate(string date){
- if (nrOfMatches >= 1){
- string* tmp;
- tmp = new string[nrOfMatches + 1];
- for (int i = 0; i < nrOfMatches; i++){
- tmp[i] = matchdates[i];
- }
- tmp[nrOfMatches] = date;
- delete[] matchdates;
- matchdates = tmp;
- }
- else{
- matchdates = new string[nrOfMatches + 1];
- matchdates[nrOfMatches] = date;
- }
- nrOfMatches++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement