Thinking Cap Implementation
class ThinkingCap
{
public:
void slots(char new_green[ ], char new_red[ ]);
void push_green( );
void push_red( );
private:
char green_string[50];
char red_string[50];
};
We will look at the body of slots, which must copy its two arguments to the two private member variables.
Previous slide
Next slide
Back to first slide
View graphic version