void DecrementTopicCount(int doc_id, int topic, bool is_general = false) { if (!is_general) { assert(--doc2topic_count_[doc_id].first >= 0); RemoveCustomer(doc_id, topic); } assert(--doc2topic_count_[doc_id].second[topic] >= 0); }
void CustomerManagementMain() { for (;;) { cout << "CURRENTLY IN CUSTOMER MANAGEMENT" << endl; cout << "------------" << endl; cout << "1) View Customers" << endl; cout << "2) Add Customer" << endl; cout << "3) Edit Customer" << endl; cout << "4) Remove Customer" << endl; cout << "5) Quit" << endl; cout << "------------" << endl; cout << "CHOICE:"; string Choice; getline(cin, Choice); system("CLS"); switch (Choice[0]) { case '1': PizzaDB.show("customer"); break; case '2': AddCustomer(); break; case '3': EditCustomer(); break; case '4': RemoveCustomer(); break; case '5': return; break; default: cout << "\n\nERROR: CODE 496X: Invalid Command... Please try again.\n\n\n"; break; } } }