Hi guys the problem I'm having is declaring the operand "op". How do you do that?
#include <iostream>
#include <stdlib.h>
using std::cin;
using std::cout;
using std::endl;
#include "expression.h" // include definition of class Calculator
// function main begins program execution
int main()
// print header for Calculator inventory display
cout << "SuperCalculator at your service!" << endl;
cout << "-----" << endl;
// create Calculator object
Calculator calculator;
do{
// initialize calculator
static double accumulator = 0;
double input = 0;
char operation = '+';
// begin loop
do{
// get inputs from user and begin calculations
cout << "Input: ";
cin >> input;
calculator.setCalculatorProcessing( accumulator, input, operation );
cout << "Operation: ";
cin >> operation;
}while( operation !='!' && operation !='='); // stops getting input and prdoubles total once "!=" condition is met
// print data stored in object
calculator.printTotal();
int op;
}while( op!='!' ); // exits only if condition is met, otherwise repeats loop
cout << "SuperCalculator Off!" << endl;
system ( "PAUSE" ); // pause terminal window and wait for keypress
return 0; // indicate successful termination
} // end main