Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstring>
- using namespace std;
- string s (string test)
- {
- int a=strlen(test.c_str());
- string reversedstring = "";
- while (a != 0)
- {
- reversedstring += test[a];
- a--;
- }
- return reversedstring;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement