#include #include using namespace std; class mainMenu { int AUSW = -1; bool CLOSER = false; mainMenu() { } void run() { while (CLOSER == false) { //clear(); cout.write("------------------------Uebungen-Anwendungsentwicklung----------------------"); cout.write("- (C) ADG 2019 -"); cout.write("- 1 = Kostenberechnung fuer Mietwagen -"); cout.write("----------------------------------------------------------------------------\n\n"); cout.write("Ihre Auswahl(99 zum Beenden): "); cin >> AUSW; } } }; int main(int argc, char const *argv[]) { mainMenu menu; menu.run(); } /*TODO: Integrieren in Menu //Project Euler �bung 2 int result; int max = 4000000; std::queue evens; for (int prev = 0, cur = 1, temp = 0; cur < max;) { temp = cur; cur = prev + cur; prev = temp; if (cur % 2 == 0) { evens.push(cur); std::cout << "current even: " << cur << std::endl; } } while (!evens.empty()) { result += evens.front(); evens.pop(); } std::cout << "Result: " << result << std::endl; return 0; */