palendrome

This is a discussion on palendrome within the C++ Programming forums, part of the General Programming Boards category; i need to see if a number is a pallendrome (2112), i see the easiest way of doing this being ...

  1. #1
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    palendrome

    i need to see if a number is a pallendrome (2112), i see the easiest way of doing this being converting into a string, which i have no idea on how to do.
    so unless any1 has a palendrome bool function, how do i turn it into a string?

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Start by reading the FAQ
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    FAQ has int to string conversion.

    edit: Hammer beat me.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Palendrome Problem [newbie to C]
    By colinuk in forum C Programming
    Replies: 16
    Last Post: 11-17-2004, 08:32 PM

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