im new student try to learn C++.. can u please help me.. :(

This is a discussion on im new student try to learn C++.. can u please help me.. :( within the C++ Programming forums, part of the General Programming Boards category; i have a question.. "if you push the letters W,X,Y, and Z IN ORDER onto a stack of characters and ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    2

    im new student try to learn C++.. can u please help me.. :(

    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

  2. #2
    Registered User
    Join Date
    Nov 2011
    Posts
    2
    i already do, but it full with error.. can you all me how to do the code?

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,794
    What did you try, and what are the errors?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [ A student who needs help ]
    By Phazawhy in forum C Programming
    Replies: 2
    Last Post: 08-23-2007, 04:28 AM
  2. New student
    By monu in forum C Programming
    Replies: 9
    Last Post: 05-27-2007, 04:38 PM
  3. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  4. Student asking for help
    By casilan in forum C Programming
    Replies: 3
    Last Post: 09-18-2003, 06:11 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21