This pull request introduces a menu-driven stack implementation in C++. It provides an interactive way for users to perform common stack operations such as push, pop, display the top element, check if the stack is empty, get the size of the stack, and display all elements in the stack.
Fixes: #231
Type of Change
[ ] Question Added
[x] Solution Added
[ ] Other (please specify):
Checklist
[x] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation (if applicable).
[x] My changes generate no new warnings.
[x] I have added tests to cover my changes (if applicable).
[x] All new and existing tests pass.
Additional Notes
This implementation improves user interaction by providing a menu system, making it easier to understand and use stack operations. Future improvements could include implementing error handling for invalid inputs and extending the stack functionality with features like resizing for dynamic memory management.
Description
This pull request introduces a menu-driven stack implementation in C++. It provides an interactive way for users to perform common stack operations such as push, pop, display the top element, check if the stack is empty, get the size of the stack, and display all elements in the stack.
Fixes: #231
Type of Change
Checklist
Additional Notes
This implementation improves user interaction by providing a menu system, making it easier to understand and use stack operations. Future improvements could include implementing error handling for invalid inputs and extending the stack functionality with features like resizing for dynamic memory management.