I have been using c++ for around an hour and a half but I am having problems with my calculator, It doesent work at all, it compiles though. here can you fix it up tell me what i did wrong.
// Calculator.cpp : Defines the entry point for the console application.
//
#include<iostream>
using namespace std;
int main()
{
float a;
int b;
int c;
int d;
float e;
cout<<"+\n";
cout<<"-\n";
cout<<"*\n";
cout<<"/\n";
cin>>a;
if(a=='+')
cout<<"enter number 2";
cin>>b;
cout<<"Number 1 and 2 is"<<(a+b);
cin>>a;
if(a=='-')
cout<<"enter number 2";
cin>>d;
cout<<"Number 1 and 2 is"<<(a-c);
cin>>a;
if(a=='*')
cout<<"enter number 2";
cin>>d;
cout<<"Number 1 and 2 is"<<(a*d);
cin>>a;
if(a=='/')
cout<<"enter number 2";
cin>>e;
cout<<"Number 1 and 2 is"<<(a/e);
system("pause")
return 0;
}