sys-prog-coursework-lab-2/calculator.cpp

12 lines
152 B
C++

#include "calculator.h"
int Calculator::Add (double a, double b)
{
return a + b;
}
int Calculator::Sub (double a, double b)
{
return Add (a, -b);
}