. . .My main problem? The function that I have defined to get the status of the dealer class, which is defined so that it returns a string variable is giving me the following compiler error:
Quote:
dealer.h(17) : error C2146: syntax error : missing ';' before identifier 'get_status'
Here is the class definition file:
Quote:
/* Dealer.h -- Dealer class header file ( specification ) */
class Dealer
{
public:
void play();
void hit();
void stay();
void quit();
string get_status();
private:
string status;
CardDeck card_deck;
};
Here is the class implementation file:
Quote:
/*
|----------------------------------------|
| MODULE NAME: Dealer.cpp |
| AUTHOR: Matthew Martin |
| ABSTRACT: class implementation |
| MACHINE/OS: |
| PROGRAM TYPE: |
| REVISIONS: |
| DESCRIPTION: Dealer class |
|----------------------------------------|
*/
#include "Dealer.h"
void Dealer::play()
{
return;
}
void Dealer::hit()
{
return;
}
void Dealer::stay()
{
return;
}
void Dealer::quit()
{
return;
}
void Dealer::get_status()
{
return;
}
Can anyone tell from the class files what I've left out or where I've made my mistake?
Thanks in advance.