
// Main program for testing the Stack object 

// EXERCISE:  SEND MESSAGES AS REQUIRED TO PERFORM THE FUNCTIONS
//       DESCRIBED BELOW.

#import <stdio.h>
#import "RPNCalculator.h"

main ( argc, argv )
int argc;
char *argv[];
{
	id calc;
	
	printf("\nCreate an RPNCalculator instance...\n");


	printf("Enter numbers 5.0, -10.0, -20.0, and 15.0 ...\n");  // and print the stack

				
	printf("Add...\n");  // and print the stack
		[calc add];
		[calc printStack];
	
	printf("Subtract...\n");  // and print the stack

	
	printf("Clear the calculator's stack...\n");  // and print the stack

	
	printf("Free the calculator and its  stack...\n");


} // end of program
