Please use c++ stack | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

16th Oct 2022, 11:31 PM
Charlton caraca
Charlton caraca - avatar
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.
16th May 2023, 1:38 PM
Ömer ÇEVİK
Ömer ÇEVİK - avatar