Gyanthakur / GFG_POTD

Add GfG potd fcfs
26 stars 52 forks source link

menu driven code for creation of stack and it's operations #231

Closed Pushkrajpnaik closed 3 weeks ago

Pushkrajpnaik commented 3 weeks ago

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.