Thinking Cap Implementation
In the heading, the function's name is preceded by the class name and :: - otherwise C++ won't realize this is a class’s member function.
void ThinkingCap::slots(char new_green[ ], char new_red[ ])
assert(strlen(new_green) < 50);
assert(strlen(new_red) < 50);
strcpy(green_string, new_green);
strcpy(red_string, new_red);