CPP
17
calculator.h
Guest on 30th June 2022 02:27:36 AM
//----------+----------+----------+----------+-----------
// File Name: calculator.h
// Author: Guruansh Singh
// Notes: Definitions file for a calculator that computes some of two operands.
// Auxillary file that helps demonstrate the usage of a Makefile.
// Adapted from an example in a previous offering of CS 260.
//----------+----------+----------+----------+-----------
#ifndef __CALCULATOR_H_
#define __CALCULATOR_H_
#include <iostream>
using namespace std;
class Calculator
{
private:
// Contains the first operand
int x_;
//Contains the second operand
int y_;
public:
//Constructor
Calculator(int, int);
// Calculates the sum
int Sum();
};
#endif