Bold Text Hereplease send a c++ program to implement stack push and pop operations using random number generatos

Recommended Answers

All 2 Replies

No one here is goning to help you unless you some motivation from your side. So post some work that you have done

As np complete said, post some code first, so that we see you've tried. We won't solve your homework, because that won't help you at all. If you want to become a programmator you'll have to start programming, and these kind of homeworks are just the thing you need in order to do that.

Let me get you started:
Stack info/operations

How to think about the stack:

push - inserts element on the top of the stack
pop - extracts the element from the top of the stack

You should do this on an array, or a vector (see vector from the C++).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.