checking palindromes

This is a discussion on checking palindromes within the C Programming forums, part of the General Programming Boards category; Hi All, I'm having problems with a program. I have to prompt for charactors, compare them, and if they form ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    checking palindromes

    Hi All,

    I'm having problems with a program.
    I have to prompt for charactors, compare them,
    and if they form a palindrome (spelled the same backwards and forwards) print them.
    Thing is, I can't use string-handling functions like strcmp(), strlen(),
    etc.

    Any suggestions?

    Thanks,

    J

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Any suggestions?
    Use the board search function, I've posted the full code for this problem several times and using several different methods. And many other people have posted solutions as well.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    thanks

    J

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array bounds checking
    By rohan_ak1 in forum C Programming
    Replies: 2
    Last Post: 08-26-2008, 11:16 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  3. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 06:59 PM
  4. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 07:57 PM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 10:05 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21