Comment
Author: Admin | 2025-04-27
I am not sure if being in linux makes any different, but i have found online that this: cout ::max(),'\n');Should be sufficient, with #include in the header of course.However, it does not seem to work in my program.It compiles, it runs, but it does not wait.Basically, i have a menu, which lead to a method call to display a list of people on the screen. I wish to pause that list before the system goes back to the menu.Here is my code from the menu://Manager's Menuvoid SelectionPage::showManagerMenu(){ char option; while(true) { system("clear"); //Clears the terminal cout> option; switch(option) { //Takes the user to the corresponding menu or method case 'a': system("clear"); memberList.addNewFlatMember(points); break; case 'b': system("clear"); memberList.deleteFlatMember(); break; case 'c': system("clear"); memberList.listFlatMembers(); break; case 'd': system("clear"); showDutiesMenu(); break; case 'e': system("clear"); showResourcesMenu(); break; case 'f': //reset(); break; case 'q': exit(0); default: cout the option i wish to select is c) which leads to://Show the current flat populationvoid MemberManagement::listFlatMembers(){ cout::max(),'\n'); return;}if you want to see any other bit of my code, feel free to let me know.Thanks in advance.
Add Comment