0
Please use c++ stack
using a c++ stack, create a program that determine the sequence of the president of the republic of the philippines. put some condition that determine the overflow and underflow of the stack. use "not yet elected" for overflow and "no president at this time" for underflow.
1 Answer
0
First of all, you may learn "what is stack": https://cplusplus.com/reference/stack/stack/
You can checkout the examples and apply for your own practices: https://www.geeksforgeeks.org/stack-in-cpp-stl/
For your questions, it is a better way to ask Google with "how to" keyword. Probably, stackoverflow.com will answer to you whatever you need.