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.
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.
Mainframe assembler programmer by trade. C coder when I can.
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.