Calculator 0.0
Addition, subtraction, multiplication, and division operations on integers.
Public Member Functions | List of all members
Calc Class Reference

Calculator class. More...

#include <Calc.h>

Public Member Functions

int add (int a, int b)
 
int sub (int a, int b)
 
int mul (int a, int b)
 
int div (int a, int b)
 

Detailed Description

Calculator class.

Author
Deepthi Raghunandan

This class provides basic calculator operations including: add, sub, mul, div

Member Function Documentation

◆ add()

int Calc::add ( int  a,
int  b 
)

Clac add function: adds two numbers together

Parameters
aNumber, first operand
bNumber, second operand

◆ div()

int Calc::div ( int  a,
int  b 
)

Clac div function: divides two numbers (first by second)

Parameters
aNumber, first operand
bNumber, second operand

◆ mul()

int Calc::mul ( int  a,
int  b 
)

Clac mul function: multiplies two numbers together

Parameters
aNumber, first operand
bNumber, second operand

◆ sub()

int Calc::sub ( int  a,
int  b 
)

Clac sub function: subtracts two numbers (second from first)

Parameters
aNumber, first operand
bNumber, second operand

The documentation for this class was generated from the following files: