I need to reverse the order of characters in a string, and I was wondering if there was a good function to do this with, or if I have to write my own.
Thanks.
This is a discussion on Is there a good function for reversing the order of characters in a string? within the C++ Programming forums, part of the General Programming Boards category; I need to reverse the order of characters in a string, and I was wondering if there was a good ...
I need to reverse the order of characters in a string, and I was wondering if there was a good function to do this with, or if I have to write my own.
Thanks.
Mac and Windows cross platform programmer. Ruby lover.
Quote of the Day
12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.
Amen brother!
Hmm...a quick Google search turned up this link:
Reverse the order of all characters inside the string : string reverse..«..string..«..C++ Tutorial
I think its what I'm looking for, though I'm open to any other suggestions.
Ok, that link does contain something for that after all:
reverse [C++ Reference]
That is definitely what I'm looking for. Thanks.