473,320 Members | 1,976 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,320 software developers and data experts.

palindrome, if the user inputs "what" the output is "thaw"

3
i can hardly know what is the code for this. I have researched palindromes, but unfortunately, I only have read about integers not for characters..I need some help..
Feb 23 '07 #1
9 1581
r035198x
13,262 8TB
i can hardly know what is the code for this. I have researched palindromes, but unfortunately, I only have read about integers not for characters..I need some help..
There are many ways of doing this.
Surely you must have an idea of your own on how to do it? Let's start with the more difficult one. If you were told to this this by making use of a char array, how would you do it?
Feb 23 '07 #2
abctech
157 100+
i can hardly know what is the code for this. I have researched palindromes, but unfortunately, I only have read about integers not for characters..I need some help..
Are you trying to write a code to reverse a string or to check if a given word is a palindrome?

As far as I know a palindrome is a word, phrase, verse, or sentence that reads the same backward or forward.
Eg: Dad, Madam, "fall leaves after leaves fall" etc
Feb 23 '07 #3
hirak1984
316 100+
well I am not sure if this can be called a plaindrome
"fall leaves after leaves fall"
I am putting some more examples...
Don't nod
Dogma: I am God
Never odd or even
Too bad – I hid a boot
Rats live on no evil star
No trace; not one carton
Was it Eliot's toilet I saw?
Murder for a jar of red rum
May a moody baby doom a yam?
Go hang a salami; I'm a lasagna hog!
Satan, oscillate my metallic sonatas!
A Toyota! Race fast... safe car: a Toyota
Straw? No, too stupid a fad; I put soot on warts
Are we not drawn onward, we few, drawn onward to new era?
Doc Note: I dissent. A fast never prevents a fatness. I diet on cod
No, it never propagates if I set a gap or prevention
Anne, I vote more cars race Rome to Vienna
Sums are not set as a test on Erasmus
Kay, a red nude, peeped under a yak
Some men interpret nine memos
Campus Motto: Bottoms up, Mac
Go deliver a dare, vile dog!
Madam, in Eden I'm Adam
Oozy rat in a sanitary zoo
Ah, Satan sees Natasha
Lisa Bonet ate no basil
Do geese see God?
God saw I was dog
Dennis sinned
Are you trying to write a code to reverse a string or to check if a given word is a palindrome?

As far as I know a palindrome is a word, phrase, verse, or sentence that reads the same backward or forward.
Eg: Dad, Madam, "fall leaves after leaves fall" etc
Feb 23 '07 #4
abctech
157 100+
"fall leaves after leaves fall"
well I am not sure if this can be called a plaindrome
Word palindromes are sentences that are read in either direction word by word.
Eg:
First ladies rule the state, and state the rule,"Ladies First."
Fall leaves after leaves fall.

Ref:-
You can find the above examples under 'Symmetry by words' in http://en.wikipedia.org/wiki/Palindrome
Feb 23 '07 #5
r035198x
13,262 8TB
Alright then. I'll copy this to the cafe forum.
Feb 23 '07 #6
abctech
157 100+
Alright then. I'll copy this to the cafe forum.
Palindrome? Cafe?
Feb 23 '07 #7
Ganon11
3,652 Expert 2GB
From what I know, a palindrome is any sentence or phrase that is the same sequence of letters when reversed, as hirak has given - for example,

"Able was I ere I saw Elba."
Feb 23 '07 #8
willakawill
1,646 1GB
A palindrome can be reverse characters, reverse words or reverse lines
NB: thaw is not the reverse of what
Feb 23 '07 #9
DeMan
1,806 1GB
An of course (thanks to The Simpsons) "Rise to vote, sir"

A foregin one I like (great one in my opinion because it's a palindrome including spaces - you'll see what I mean [and I like the sentiment]) is
"Alus ari ira sula"
Which roughly translates from Latvian as "Ale also is juice"
Feb 23 '07 #10

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

Similar topics

9
by: Dullme | last post by:
i can hardly know what is the code for this. I have researched palindromes, but unfortunately, I only have read about integers not for characters..I need some help..
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.