I'm making a very first program. It's very little more then a simplistic calculator, but i'm having a problem with the cout function. It won't display any text what could the reasons be? any help is appreciated.


#include <iostream>
#include <string>
#include <sstream>
using namespacestd;

int main ()
{
do
{
int(a);
int(b);
int(c);
char(d);
int number;
cout << "First number?" << endl; //This is the first line in which the cout does not print.
getline(cin, number); a=number;
cout << "Add, Subtract, Multiply, or Divide?" << endl; //It doesnt in any of the following lines either.
getline(cin, name); d=name;
cout << "Second number?" << endl;
getline(cin, number); b=number;
if (d=add)
c=a+b;
cout << c << "\n"; //The only line from which it prints is this one.
if (d=subtract)
c=a-b;
cout << c << "\n";
if (d=multiply)
c=a*b;
cout << c << "\n";
if (d=divide)
c=a/b;
cout << c << "\n";
}while(1);
return 0;
}

Oh and i'm aware it's still riddled with numerous problems, I just have been working on the cout thing first.