How To Reverse A Char String in C++?

Discussion in 'Mac Programming' started by bobber205, Feb 14, 2007.

  1. macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #1
    At school strrev works in Visual Studio to reverse my string. But just now when I tried to compile it in XCode, it said strrev was not declared in this scope.

    What should I do other than write the function myself?
     
  2. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #2
    Do you mean a STL string or a char array? Either way, you'll have to write it yourself (or Google).
     

Share This Page