class Calculator
                    
                

Description

brief

A simple calculator class.

Provides basic arithmetic operations.

Defined on line 8 at Calculator.h

Public Methods

            
int add(int a, int b)
            
        

brief

Adds two integers.

return

int The sum of a and b.

Defined on line 3 at Calculator.cpp
            
int subtract(int a, int b)
            
        

brief

Subtracts the second integer from the first.

return

int The result of a - b.

Defined on line 7 at Calculator.cpp
            
int multiply(int a, int b)
            
        

brief

Multiplies two integers.

return

int The product of a and b.

Defined on line 11 at Calculator.cpp
            
double divide(int a, int b)
            
        

brief

Divides the first integer by the second.

return

double The result of a / b.

throw

if b is zero.

Defined on line 15 at Calculator.cpp