Using the Thinking Cap
The program starts by calling the slots member function for student.
#include <iostream.h>
#include <stdlib.h>
#include "thinker.h"
int main( )
{
ThinkingCap student;
ThinkingCap fan;
student.slots( "Hello", "Goodbye");
Previous slide
Next slide
Back to first slide
View graphic version