Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:10:28+00:00 2026-06-12T22:10:28+00:00

I am starting to work with Stack in C++. I make the functions for

  • 0

I am starting to work with Stack in C++. I make the functions for push and pop. When we call the pop function it deletes the top data or info in the stack.

Is it possible to first find the data position in the stack and delete that position’s data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:10:29+00:00Added an answer on June 12, 2026 at 10:10 pm

    No, the whole point of a Stack is that it’s FIFO, or first-in first-out. Whatever data you push onto the Stack is not accessible until data on top of that has been popped off of the Stack.

    If you need to access data underneath the top layer, then you simply need to use another data structure, like an array or a list, for example.

    I suggest you spend some time reading about C++ data structures. This will give you a better idea of what each data structure is used for, as well as when you should use a particular data structure. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting some work on a rather large JS project and want to make
I'm starting to work with oop to build a site of user generated data.
I'm starting on work on my first Windows Mobile 6.5 app in C#, and
I'm starting work on some simulations using MPI and want to do the programming
I am starting to work with node.js to build a light-weight, high-demand REST platform
I'm starting to work on a small script that takes a string, counts the
I'm starting to work with Entity Framework as ORM. But my question is: is
I'm starting to work on a 3D particle system editor and evolver. Ive done
I am very familiar with C# but starting to work more in Java. I
I have a python IRC bot that I'm starting to work on to practice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.