Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Pushkrajpnaik
Copy link
Contributor

@Pushkrajpnaik Pushkrajpnaik commented Oct 31, 2024

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

  • Question Added
  • Solution Added
  • Other (please specify):

Checklist

  • 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).
  • My changes generate no new warnings.
  • I have added tests to cover my changes (if applicable).
  • 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.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @Pushkrajpnaik! Thanks for creating the pull request.
Soon the maintainers/owner will review it and provide you with feedback/suggestions.
Make sure to star this awesome repository and follow the account!

@Gyanthakur Gyanthakur merged commit c70828c into Gyanthakur:main Oct 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants