-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (25 loc) · 755 Bytes
/
main.cpp
File metadata and controls
30 lines (25 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//Jeff Henebury
// CalculatorTemplate.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "CalculatorTemplate.h"
using namespace std;
int main()
{
CalculatorTemplate myCalc;
cout << "Manually testing ints...\n";
int x = 5;
int g = 45;
int ans1 = myCalc.addValues(x, g);
cout << "added values of 5 and 45: " << ans1 << endl;
cout << "Manually testing dooubles...\n";
double a = 99.99;
double b = 13.1;
double ans2 = myCalc.subtractValues(a, b);
cout << "subtracted values, 99.99-13.1: " << ans2 << endl;
cout << endl;
myCalc.doTheMath(a, '-', b);
cout << "And now, user input...\n";
myCalc.UserInterface();
return 0;
}