#include <iostream>
using namespace std;

int main()
{
    auto Start = true;
    while (Start) {
       // SetConsoleTitle(TEXT("Rechner"));
        std::cout << "Wollen sie den Rechner Starten? (0=false/1=true)\n";
        std::cin >> Start;
 
        if (!Start) {
            return 0;
        }
 
       // int RechenArt;
       // std::cout << "Addition = 1, Subtraktion = 2, Multiplikation = 3, Division = 4\n";
       // std::cin >> RechenArt;
       // system("cls");
 
        int Zahl1;
        int Zahl2;
        char op;
        
        
        cout << "Bitte Formel eingeben:" << endl;
        std::cin >> Zahl1;
        std::cin >> op;
        std::cin >> Zahl2;
        
		const char opVal = op;
		
        switch (opVal) {
        case '+':
           // SetConsoleTitle(TEXT("Addition"));
            system("cls");
            std::cout << "Ergebnis: " << "" << Zahl1 << " + " << "" << Zahl2 << " = " << Zahl1 + Zahl2 << std::endl;
            break;
        case '-':
           // SetConsoleTitle(TEXT("Subtraktion"));
            system("cls");
            std::cout << "Ergebnis: " << "" << Zahl1 << " - " << "" << Zahl2 << " = " << Zahl1 - Zahl2 << std::endl;
            break;
        case '*':
           // SetConsoleTitle(TEXT("Multiplikation"));
            system("cls");
            std::cout << "Ergebnis: " << "" << Zahl1 << " * " << "" << Zahl2 << " = " << Zahl1 * Zahl2 << std::endl;
            break;
        case '/':
          //  SetConsoleTitle(TEXT("Divison"));
            system("cls");
            std::cout << "Ergebnis: " << "" << Zahl1 << " / " << "" << Zahl2 << " = " << Zahl1 / Zahl2 << std::endl;
            break;
 
        default:
            return 0;
        }
        system("PAUSE");
    }
}