[ create a new paste ] login | about

Link: http://codepad.org/l0a2MOg8    [ raw code | output | fork ]

C++, pasted on Oct 14:
1
2
3
4
5
6
7
8
9
#include <iostream>
#include <string>
using namespace std;

int main() {
    string str = "alakazam!";
    string str2(str.rbegin(), str.rend());
    cout << str2 << "\n";
}


Output:
1
!mazakala


Create a new paste based on this one


Comments: