#ifndef HEADER1_H // if Person class is not defined
#define HEADER1_H // then define (multiple definitions will cause problems)
#include <iostream>
#include <string>
usingnamespace std;
class player
{
private:
string name;
string player1;//variable to hold players name
int win;//variable to hold win count
int loss;//variable to hold loss count
public:
void print() const;//function to print players name
void setName(string player1);//function to set player names
string getName() const;//function to get names
void winloss() const;//function to print win/loss
player();//default constructor
};
#endif // end the compiler directive for the define
#ifndef HEADER1_H // if Person class is not defined
#define HEADER1_H // then define (multiple definitions will cause problems)
#include <iostream>
#include <string>
usingnamespace std;
class player
{
private:
string playName;
string player1;//variable to hold players name
int win;//variable to hold win count
int loss;//variable to hold loss count
public:
void print() const;//function to print players name
void setName(string player1);//function to set player names
string getName() const;//function to get names
void winloss() const;//function to print win/loss
void playerName(string playName);
player();//default constructor
};
#endif // end the compiler directive for the define