#include #include #include using namespace std; float Addition() { float Zahl; float Ergebnis; string Option("ja"); do { cout<<"Zahl eingeben"<>Zahl; cout<<"Zahl eingeben"<>Ergebnis; Ergebnis=Ergebnis+Zahl; cout<<" = "<>Option; } while(Option=="ja"); } float Subtraktion() { float Zahl1; float Zahl2; string Option("ja"); cout<<"Zahl eingeben"<>Zahl2; do { cout<<"Zahl eingeben"<>Zahl1; Zahl2=Zahl2-Zahl1; cout<<" = "<>Option; } while(Option=="ja"); } float Multiplikation() { float Zahl1; float Zahl2; string Option("ja"); cout<<"Zahl eingeben"<>Zahl2; do { cout<<"Zahl eingeben"<>Zahl1; Zahl2=Zahl2*Zahl1; cout<<" = "<>Option; } while(Option=="ja"); } float Division() { float Zahl1; float Zahl2; string Option("ja"); cout<<"Zahl eingeben"<>Zahl2; do { cout<<"Zahl eingeben"<>Zahl1; Zahl2=Zahl2/Zahl1; cout<<" = "<>Option; } while(Option=="ja"); } //Euro in Dollar Rechner Versuch, ich gehe davon aus 1Euro = 1,336$ nach devisen-trader.de float Rechner() { const float A=1.336; float Wert; string option("ja"); do { cout<<"Euro-Wert hier eingeben"<>Wert; Wert=Wert*A; cout<<""<>option; } while(option=="ja"); } int main(int argc, char *argv[]){ Anfang: int Auswahl; cout<<""<>Auswahl; switch(Auswahl) { case 1: Addition(); break; case 2: Subtraktion(); break; case 3: Multiplikation(); break; case 4: Division(); break; case 5: Rechner(); break; case 6: goto Ende; } goto Anfang; Ende: cout<<"Hier bitte Copyright-Ansprueche rein, ausserdem koennte man vllt. dieses \"Press any key\" umschreiben, danke fuers Lesen"<