int main (int argc, const char * argv[]) { string errorMessage = ""; UserInterface ui = UserInterface(); bool startupSucceeded = ui.start(errorMessage); bool continueProgram = true; if(startupSucceeded) { while(continueProgram) { continueProgram = ui.menuLoginScreen(); if(continueProgram) { //system("CLS"); ui.mainMenu(); } } } else { cout << errorMessage << endl; } ui.save(); return 0; }
int main() { //Datei auslesen FileOpener *datei = new FileOpener(); // datei->oeffneDatei("./utf8.csv"); datei->oeffneDatei("./iso8859.csv"); datei->leseDateiAus(); cout << "\n\n------------Einlesen abgeschlossen-----------\n\n"; vector<vector<string> > erg = datei->getDatensatz(); LokationsVerwaltung *lokVerwaltung = new LokationsVerwaltung(&erg); delete datei; Graph *graph = new Graph(lokVerwaltung->getGebieteMap()); UserInterface * interface = new UserInterface(graph); interface->start(); delete interface; delete graph; delete lokVerwaltung; return (EXIT_SUCCESS); }