#include #include "konto.hpp" #include "girokonto.hpp" using std::cin; using std::cout; using std::endl; using systemModel::AnalyseModell::Konto; using systemModel::AnalyseModell::Girokonto; int main() { Girokonto geldspeicher; float betrag; int input; do { cout << "1: Geld einzahlen"<> input; switch (input) { case 1:{ cout << "Betrag einzahlen: "; cin >> betrag; geldspeicher.geldEinzahlen(betrag); break; } case 2: { cout << "Betrag abheben: "; cin >> betrag; if(true == geldspeicher.pruefeUeberziehungsKredit(betrag)) geldspeicher.geldAbheben(betrag); break; } case 3: cout << "Kontostand: " << geldspeicher.getKontostand() << endl; break; default: break; } }while(input!=0); return 0; }