do
{
system("CLS");
cout << "plese enter the first number you would like to use"<< endl;
cin >> dfirstnumber;
cout << "please enter the operation you would like to complete" << "(+,-,* or /)" << endl;
cin >> eChar;
cout << "please enter the second number you would like to use" << endl;
switch (eChar)(
case (+) ;
cout << "The answer is: " << dfirstnumber << " + " << dsecondnumber << "=" << (dfirstnumber + dsecondnumber) << endl;
break;
case " - ";
cout << "The answer is: " << dfirstnumber << " - " << dsecondnumber << "=" << (dfirstnumber - dsecondnumber) << endl;
break;
case " * ";
cout << "The answer is: " << dfirstnumber << " * " << dsecondnumber << "=" << (dfirstnumber * dsecondnumber) << endl;
break;
case"x";
cout << "The answer is: " << dfirstnumber << " x " << dsecondnumber << "=" << (dfirstnumber * dsecondnumber) << endl;
break;
case"X";
cout << "The answer is: " << dfirstnumber << " X " << dsecondnumber << "=" << (dfirstnumber + dsecondnumber) << endl;
break;
case"/";
if (dsecondnumber == 0) (
cout << "that is an invalid operation" << endl;
)else(
cout << "The answer is: " << dfirstnumber << " / " << dsecondnumber << "=" << (dfirstnumber / dsecondnumber) << endl;
)
break;
default;
cout << "that is an invalid operation" <<endl;
break;
)
cout << "Would you like to strt again? (y or n)" endl;
cin >> cDoagain;
)while (cDoagain == 'Y' || cDoagain =='y');
system ("PAUSE");
return 0;
)
there is apparantly something wrong with the "case" function. please help