i am curious about this palindrome....is there somebody give me some code so that i have a background knowledge to this topic,
g_patron06
0
Newbie Poster
Recommended Answers
Jump to PostWhat's more to say, it reads the same forwards as it does backwards. Separate the string to individual chars using the substring method.
Jump to Postwell, the following code should do it:
bool CheckPalindrome (string CheckString) { if (CheckString == null || CheckString.Length == 0) { return false; } for (int i = 0; i < CheckString.Length / 2; i++) { if (CheckString[i] != CheckString[CheckString.Length - 1 - i]) { return false; …
All 5 Replies
iamthwee
g_patron06
0
Newbie Poster
pygmalion
2
Junior Poster in Training
gauravdudeja
0
Newbie Poster
cVz
19
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.