cin >> +-* /; this is just wrong, you can't read a given value into an operator.
something like this might do the trick: (hasn't been tested, not even compiled)
Code:
#include <iostream>
using namespace std;
int main()
{
int num1,num2; // numbers to operate on
char operator[2]; // make room for operator plus <cr>
cout << "Enter 2 integers:"<<endl;
cin >> num1 >> num2;
cout << "enter operator: + (addition),-(subtraction),* (multiplication),/(division), %(remainder):" << endl;
cin.getline(operator, 2, '\n' );
switch((int)operator[0])
{
case '+':
cout << "Sum is " << (num1 + num2) << endl;
break;
case '/':
cout << "Quotient is " << (num1 / num2) << endl;
case '%':
cout << "Remainder is " << (num1 % num2) << endl;
break;
case '*':
cout<< "product is " << (num1 * num2) << endl;
break;
default:
cout << "Don't know how to use operator " << operator << endl;
}
return 0;
}