Question: I have multiple errors in multiple files, so bare with me . In one of my class implementation files, I am getting an error that
I have multiple errors in multiple files, so bare with me In one of my class implementation files, I am getting an error that this section of code:
void Match::assignteamCoach
if teamCoach
teamCoach teamCoach;
else
std::cout "A Coach has already been assigned." std::endl;
has this error: no operator matches these operands
this snippet:
if mteamCoach.empty
output No coach has been assigned.";
else
output "Team Coach: ;
output mteamCoach std::endl;
has this error: class Coach has no member "empty"
and in my main cpp file, this code snippet:
std::string teamName, matchLocation, matchOpponent;
int month, day, year;
char slash;
Date matchDate;
std::cout "Team Name: ;
std::getlinestd::cin, teamName;
std::cout "Match Location: ;
std::getlinestd::cin, matchLocation;
std::cout "Match Opponent: ;
std::getlinestd::cin, matchOpponent;
std::cout "Match Date mmddyyyy: ;
std::cin month slash day slash year;
matchDate.setDatemonth day, year;
Match newMatchteamName matchLocation, matchOpponent, matchDate;
gives this error on the last line: no instance of constructor "Match::Match" matches the Inheritence argument list
Any help would be appreciated.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
