#pragma once #include using namespace std; // class to track wrong guesses and display as a whimsical // execution class Gallows { public: // constants can be class members too const int MAX_GUESSES = 6; // simple inline methods Gallows() { count = 0; } void Increment() { count++; } bool Done() { return count == MAX_GUESSES; } // more substantial methods are defined in the .cpp file void Draw(); private: // private varible to track the count int count; // private methods for internal use only // in this case, you need a method to draw // each of the seven states void draw6(); };