Palindrome using stack and queue STL

An example I could look at?

Page 1 of 1

2 Replies - 11754 Views - Last Post: 10 May 2007 - 02:03 PM Rate Topic: -----

#1 zillian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 10-May 07

Palindrome using stack and queue STL

Posted 10 May 2007 - 12:45 PM

Hi, I'm a little new to programming and was wondering if there are any examples I could look at it, involving use of the stack and queue STL to determine whether or not a certain string is a palindrome? A little unfamiliar with these libraries and wanted to see how they work. Thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: Palindrome using stack and queue STL

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Palindrome using stack and queue STL

Posted 10 May 2007 - 12:50 PM

You can check some of these:

http://cns2.uni.edu/...ching/052/code/

http://www.planet-so...p...32&lngWId=3

http://64.233.167.10...lient=firefox-a
Was This Post Helpful? 0
  • +
  • -

#3 zillian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 10-May 07

Re: Palindrome using stack and queue STL

Posted 10 May 2007 - 02:03 PM

View PostAmadeus, on 10 May, 2007 - 12:50 PM, said:




Well, I gave it a shot and the program will build, but everything seems to come out as a palindrome and I'm wondering why. Also, I noticed that if I try to do a 2nd palindrome the program generates a run-time error saying the stack is empty. Wonder what I am doing wrong?

Attached File(s)

  • Attached File  main.txt (912bytes)
    Number of downloads: 563

This post has been edited by zillian: 10 May 2007 - 02:04 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1