24 lines
466 B
C
Raw Permalink Normal View History

2021-03-28 14:53:22 -04:00
#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