24 lines
466 B
C++

#ifndef CALCULATORH
#define CALCULATORH
class Calculator {
public:
// TODO: Declare default constructor
// TODO: Declare member functions -
// Add(), Subtract(), Multiply(), Divide(), Clear(), GetValue()
Calculator();
void Add(double n);
void Subtract(double n);
void Multiply(double n);
void Divide(double n);
void Clear();
double GetValue();
private:
// TODO: Declare private data member - value
double value;
};
#endif