Re: whitespace and strings

Discussion in 'C++' started by Assaf, Jul 24, 2003.

  1. Assaf

    Assaf Guest

    You can use the std::remove_if and std::reverse algorithms, as was
    suggested, but there are more efficient ways of determining if a string is a
    palindrome, if you think about it.
    Assaf

    "D M" <> wrote in message
    news:SfJTa.497682$...
    > Hi,
    >
    > Does anyone know how to eliminate whitespace from a string? my ultimate

    goal
    > is to eliminate the whitespace from a string, then copy it to a new

    string,
    > reverse the new string then compair the new and the old strings. Any help
    > would be useful thank you.
    >
    > Devin M.
    >
    >
    Assaf, Jul 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John A Grandy

    trim and pure apparently whitespace strings

    John A Grandy, Nov 22, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    457
    John A Grandy
    Nov 23, 2004
  2. Oli Filth
    Replies:
    9
    Views:
    3,314
    Uncle Pirate
    Jan 17, 2005
  3. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    738
    Malcolm
    Jun 24, 2006
  4. Replies:
    10
    Views:
    719
    Eric Brunel
    Dec 16, 2008
  5. MRAB
    Replies:
    3
    Views:
    370
Loading...

Share This Page