: You didn't post the h-file, so it isn't possible to compile the
: code. So please post it and I will take a look at the code.
[q]Here is that h-file.[/q]
Game.h
#ifndef Game_h
#define Game_h
#include <string>
using namespace std;
struct BODY // this is my structure that holds all the pieces of Hangman for when
{ // he get's drawed to the screen.
char head, head2, headCLT, headMT, headCRT, headCLB, headMB, headCRB,
neck,
shoulders, shouldersL, shouldersM, shouldersR,
arm1, arm2,
body,
hips, hipsL, hipsM, hipsR,
leg1, leg2;
}; // eof structure BODY
class Game
{
//Overload the stream insertion and extraction operators
friend ostream& operator<< (ostream&, const Game &);
friend istream& operator>> (istream&, Game &);
public:
virtual void play();
Game(); // constructor
Game(const Game &game); // copy constructor
protected:
string skipWord, plyrName;
char *hmWord, guess, startLet;
int letAmount, guessAmount, correct,
score, letValue, alpha, letGuessed, hmLetters;
bool gameOver;
};
#endif