rendered paste bodyvoid printTableContent(CTable* activeTable){ GList* oldList = activeTable->getArtSpecList(OLD_LIST); GList* newlist = activeTable->getArtSpecList(NEW_LIST); CTableArtSpec* oldSpec=NULL; CTableArtSpec* newSpec=NULL; cout << "------------------------------------------------------\n"; cout << "-> Tisch [Nummer: " << activeTable->getNum() << " | Name: " << activeTable->getName() << "] hat den Inhalt:\n"; cout << "ALT: \n"; for(int i=0; i<g_list_length(oldList); i++) { oldSpec = (CTableArtSpec*)g_list_nth_data(oldList,i); cout << "Artikel: " << oldSpec->getNum() << " " << oldSpec->getName() << " " << oldSpec->getPrice() << "\n"; } cout << "------------------------------------------------------\n";}