i need a help.. please3...

i have a question..

"if you push the letters W,X,Y, and Z IN ORDER onto a stack of characters and then pop them, in what order will they be deleted from the stack? write a program to display the letters W,X,Y, and Z in REVERSE ORDER."

OUTPUT
Item Popped = Z
Item Popped = Y
Item Popped = X
Item Popped = W
but i need the code
ziczoe, what helios attempted, in a fairly verbose way, to inform you, is that you're not actually asking a question, you're asking us to do your homework for you.

Don't post homework questions
Programmers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.


He also intimated that you haven't really made any attempt on your own to solve this problem, you just came running to us for help without making a real attempt to learn or apply the extensive logical ability of the human mind to this project.

Before You Ask
Before asking a question a, do the following:
1.Try to find an answer by searching the archives of the forum you plan to post to.
2.Try to find an answer by searching the Web.
3.Try to find an answer by reading the manual.
4.Try to find an answer by reading a FAQ.
5.Try to find an answer by inspection or experimentation.
6.Try to find an answer by asking a skilled friend.

Prepare your question. Think it through. Hasty-sounding questions get hasty answers or none at all.


He was trying to indicate to you that you chose an inappropriate title for your post, as well.

Use meaningful, specific subject headers
The subject header is your golden opportunity to attract qualified experts' attention. Don't waste it on babble like 'Please help me' Don't try to impress us with the depth of your anguish; use the space for a super-concise problem description instead.


I only write this because apparently you didn't read the post that he re-directed you to. Perhaps this will prompt you to review it more carefully.
Topic archived. No new replies allowed.