#include "stdafx.h"
#include <iostream>
using namespace std;
//Global Variables
int x;
int y;
int userAnswerX;
int userAnswerY;
int userChoice;
//Global Variables
int main()
{
cout << "===================\n";
cout << "= Calculator =\n";
cout << "===================\n";
cout << "1) Add\n";
cout << "2) Subtract\n";
cout << "3) Multiply\n";
cout << "4) Divide\n";
cout << "(Type the number)\n";
cin >> userChoice;
if (userChoice==1) _add();
if (userChoice==2) _subtract();
if (userChoice==3) _multiply();
if (userChoice==4) _divide();
else (system("pause>nul"));
}
int _add ()
{
cout << "\nEnter value for X: ";
cin >> userAnswerX;
x = userAnswerX;
cout << "\nEnter value for Y: ";
cin >> userAnswerY;
y = userAnswerY;
cout << "\nYou set X equal to ";
cout << x;
cout << "\nYou set Y equal to ";
cout << y;
cout << "\n \n";
cout << x + y
system("pause>nul");
}
int _subtract ()
{
}
int _multiply ()
{
}
int _divide ()
{
}

================ = Calculator = ================ 1) Add 2) Subtract 3) Multiply 4) Divide (Type the number) "User types number here" ( Goes to _add(), _subtract(), _multiply(), or _divide() )
cout << "===================\n"; cout << "1) Add\n"; cout << "2) Subtract\n"; cout << "3) Multiply\n"; cout << "4) Divide\n"; cout << "(Type the number)\n";
Enter value for X
cout<<"yourcalculatorname,Developed by BobFM\n";
cout << "Copyright© 2011 " << endl;