I've searched all over the place and I cannot seem to find a well working, reliable solution to this that is not platform specific.
Here is what I have:
Main menu of a class (while loop with 0 as exit).
User selects choices.
Choice calls class function to carry out the specific request.
I want the result of each of the functions to stay on screen until the user presses any key (and doesn't have to press enter to confirm it) and then the menu is called again.
Is there an easy way to do this?
PS. I've seen an implementations with cin.get(ch) or cin.ignore(1,0), but neither work in my situation. After a certain function is done, the menu is called as if bypassing the get character line completely.