Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalthis is so weird - try it and see Pin
Oinka25-Oct-03 8:06
Oinka25-Oct-03 8:06 
GeneralRe: this is so weird - try it and see Pin
Michael P Butler25-Oct-03 9:05
Michael P Butler25-Oct-03 9:05 
GeneralHey thanks that worked - but I'm still confused Pin
Oinka25-Oct-03 9:14
Oinka25-Oct-03 9:14 
GeneralRe: Hey thanks that worked - but I'm still confused Pin
Michael P Butler25-Oct-03 9:33
Michael P Butler25-Oct-03 9:33 
GeneralC++ Data Structures (3rd), Chapter 3, Exercise 8 a+b, pg 171 Pin
aLiSoN374225-Oct-03 7:58
sussaLiSoN374225-Oct-03 7:58 
GeneralRe: C++ Data Structures (3rd), Chapter 3, Exercise 8 a+b, pg 171 Pin
Oinka25-Oct-03 8:56
Oinka25-Oct-03 8:56 
GeneralC++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
aLiSoN374225-Oct-03 7:56
sussaLiSoN374225-Oct-03 7:56 
GeneralRe: C++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
joshfl25-Oct-03 8:45
joshfl25-Oct-03 8:45 
aLiSoN3742 wrote:
I'm not sure how to write just a code segment. Not being able to run it leave s me without any direction to go in (knowing if it's right or wrong).
well, just put your code segment in a function , than write a program that passes in a palindrome to function containin the code your testing , and provide a return TRUE or FALSE from that function if its a palindrome or not..
You could test your code segment this way and if you need to just hand in the segment, you take it outta the function once your sure the code works.
or dont even put your code in a function, and hardcode a CString Palindrome = "ABLE WAS I ERE I SAW ELBA"; to act upon in your testing.


aLiSoN3742 wrote:
I would really like to find a teacher's version of this book, or an answer guide someplace! Thank you! Alison
------------------------------------
Using one or more stacks, write a code segment to read in a string of characters and determine whether it forms a palindrome. A palindrome is a sequence of characters that reads the same both forward and backward--for example: ABLE WAS I ERE I SAW ELBA.

The character '.' ends the string. Write a message indicating whether the string is a palindrome. You may assume that the data are correct and that the maximum number of characters is 80.
-------------------------------


i'd help you w/ some code, but as a general rule of thumb, cp'ers dont do other peoples homework. is there anything in particular that is giving you trouble that someone could assist you with? do you have any code written ? the answer 'all of it' doesnt go over well here....

todo....
:: insert inspirational text here ::
GeneralRe: C++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
Oinka25-Oct-03 10:21
Oinka25-Oct-03 10:21 
GeneralRe: C++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
Terry O'Nolley25-Oct-03 14:34
Terry O'Nolley25-Oct-03 14:34 
GeneralRe: C++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
Jörgen Sigvardsson26-Oct-03 5:45
Jörgen Sigvardsson26-Oct-03 5:45 
GeneralPlotting Graphs Pin
emrosa25-Oct-03 7:30
emrosa25-Oct-03 7:30 
GeneralRe: Plotting Graphs Pin
Oinka25-Oct-03 10:11
Oinka25-Oct-03 10:11 
GeneralNeed help developing algorithm Pin
Steven M Hunt25-Oct-03 5:54
Steven M Hunt25-Oct-03 5:54 
GeneralRe: Need help developing algorithm Pin
CillyMe25-Oct-03 8:05
CillyMe25-Oct-03 8:05 
GeneralRe: Need help developing algorithm Pin
Steven M Hunt25-Oct-03 8:24
Steven M Hunt25-Oct-03 8:24 
GeneralRe: Need help developing algorithm Pin
Oinka25-Oct-03 8:49
Oinka25-Oct-03 8:49 
GeneralRe: Need help developing algorithm Pin
Ravi Bhavnani25-Oct-03 9:02
professionalRavi Bhavnani25-Oct-03 9:02 
GeneralDial-up server in windows 98 Pin
choupani25-Oct-03 4:14
choupani25-Oct-03 4:14 
GeneralProblem with extern in C++(Very urgent) Pin
Azghar Hussain25-Oct-03 3:35
professionalAzghar Hussain25-Oct-03 3:35 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Ravi Bhavnani25-Oct-03 4:18
professionalRavi Bhavnani25-Oct-03 4:18 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Azghar Hussain25-Oct-03 5:13
professionalAzghar Hussain25-Oct-03 5:13 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Jörgen Sigvardsson26-Oct-03 5:46
Jörgen Sigvardsson26-Oct-03 5:46 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Azghar Hussain26-Oct-03 17:20
professionalAzghar Hussain26-Oct-03 17:20 
GeneralCDC::TransparentBlt Pin
eugi25-Oct-03 2:32
eugi25-Oct-03 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.