was mach ich falsch

köntet ihr mir sagen was ich falsch mache

#include

using namespace std;

int main(void)
{
system(“titelCALCULATOR”);
system(“color 2”);
char cChar;
double dfirstnumber;
double dsecondnumber;
char cDoagain;

do
{
system(“CLS”);
cout << "please enter a number" << endl; cin >> dfirstnumber;
cout << "please enter the operation" << " (+,-,* or /) " << endl; cin >> cChar;

cout << "please enter a number" << endl; switch(cChar) { 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 '/': if(dsecondnumber == 0) { cout << " Thats an invalid operation " << endl; }else{ cout << " The answer is" dfirstnumber << " / " << dsecondnumber << " = " << (dfirstnumber / dsecondnumber) << endl; } default: cout << " That is isvalid" << endl; break; }while (cDoagain == 'y' || cDoagain == 'Y'); system("pause"); return 0; }

Leave a Reply

Your email address will not be published. Required fields are marked *

Was mach ich falsch?

Hi Leute,

heute meinen Opticum 4000c mit Sorglospaket geflasht. Ich kann in den keks-editor – heißt das, das bis dahin alles richtig gelaufen ist oder hätte ich das in der Grundkonfiguration auch schon machen können, denn trotz aktueller kekse bleibt p. dunkel? :ueberleg:

Gruß

Jörg

Leave a Reply

Your email address will not be published. Required fields are marked *