Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.70K
1 Posted Topic
#include <iostream> #include <string> using namespace std; string reverse ( string s ) { if( s.size() == 0 ) return s; if( s.size() == 1 ) return s; else return reverse( s.substr(1,s.size()) ) + s.substr(0,1); } int main() { string v = "Color"; cout <<reverse( v )<<endl; system("pause"); return 0; …
The End.
Joshua_3