rendered paste body// Jonathan Chan
// CIS15 MY9 Prof. Sokol
// player class
#include <iostream>
#include "cards.h"
#ifndef WAR_PLAYER_H
#define WAR_PLAYER_H
using namespace std;
class war_player {
private:
deck in_play;
deck discard;
public:
/*** Variables ***/
string name;
/*** Methods ***/
// constructor
//war_player(string nam="") { name=nam; }
void receive(card);
card give();
int totalcards();
};
#endif
playertest.cpp: In function 'int main()':
playertest.cpp:7: error: no matching function for call to 'war_player::war_player(const char [9])'
../player.h:12: note: candidates are: war_player::war_player()
../player.h:12: note: war_player::war_player(const war_player&)
../player.h: In constructor 'war_player::war_player()':
../player.h:12: error: no matching function for call to 'deck::deck()'
../deck.h:53: note: candidates are: deck::deck(const deck&)
../deck.h:48: note: deck::deck(short unsigned int, deck_mode, bool)
../deck.h:47: note: deck::deck(short unsigned int)
../player.h:12: error: no matching function for call to 'deck::deck()'
../deck.h:53: note: candidates are: deck::deck(const deck&)
../deck.h:48: note: deck::deck(short unsigned int, deck_mode, bool)
../deck.h:47: note: deck::deck(short unsigned int)