473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

just a task

a want a some1 who can help me in doing a program of stack with template that will chech a word displays in stack is a palindrome or not compared with the 1 was inserted on stack and use c++,thanx
Aug 11 '07 #1
1 1390
JosAH
11,448 Expert 8TB
a want a some1 who can help me in doing a program of stack with template that will chech a word displays in stack is a palindrome or not compared with the 1 was inserted on stack and use c++,thanx
Sure we can help you; the STL already contains stack templates so all you have
to do instantiate them for your type of data you want to push on to that stack.
(a char mayhap?).

If you want to use just 'pure' stacks only you need three of them:

1) push all the characters of the word on two stacks A and B;
2) clear stack B while pushing everything that came out of it on stack C;
3) keep on popping chars from stacks A and C until they're either empty or
until the popped off characters aren't equal.

Now it's your turn.

kind regards,

Jos
Aug 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: ThunderMusic | last post by:
Hi, Is there a way in VB.NET to get the information about a task just like the Windows' task manager does? I want to get how started the task, the memory it takes, the cpu it take, the cpu time it...
1
by: forums_mp | last post by:
Come to think of it I have another question: With respect to priority task1 is the highest, task2 is the lowest. The snippet: SEM_ID task1_sema = semBCreate(SEM_Q_FIFO, SEM_EMPTY); SEM_ID...
1
by: Wesley Gibbs | last post by:
The Steps I do to create and run my task are as follows: 1) I open up Control Center 2) From the Control Center I click Tools to open the Task Center Window 3) I create a Task and it is shown...
9
by: klh | last post by:
We are running on Win 2003/DB2 V8 FP7a. My question concerns Task Center. I have about 200 tasks created and scheduled in Task Center. We are going to be moving many of the databases from this...
4
by: mabond | last post by:
Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. I have a task which runs at 15 min intervals and from time to time I want to...
1
by: Mark | last post by:
Hello, I am looking to buy a Winforms component to assist in task scheduling for an application I am developing. The tasks are time (00:00->23:59), day (Monday->Sunday) and week (1->52+)...
6
by: Marcus | last post by:
Hi, I am a newbie at C#. Here is my current problem: I want my application to iterate through the list of tasks presented in task manager. I want it to look at the task names and if a certain...
1
by: satelite | last post by:
Hello, I am writing an exe that is intended to be run via a scheduled task. However, I also need the flexibility to have users run the scheduled task manually (right click task and select run). ...
0
oll3i
by: oll3i | last post by:
import javax.swing.*; import java.awt.event.*; import java.util.ArrayList; import java.util.List; import java.util.concurrent.*; import java.lang.reflect.*; public class Exec1 extends JFrame...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.