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

12 lines
158 B
C++
Raw Normal View History

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