Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobber205

macrumors 68020
Original poster
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?
 
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?

Do you mean a STL string or a char array? Either way, you'll have to write it yourself (or Google).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.