Reverse a string.
Anonymous
string reverseString(string str){ int front = 0; int back = str.size( ); while(front > end){ char temp = str[front]; str[front] = str[back]; str[back] = temp; ++front; --back; } }
Check out your Company Bowl for anonymous work chats.