All pastes #439300 Raw Edit

Something

public text v1 · immutable
·published 2007-04-14 04:31 UTC
rendered paste body
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;

int main(){
    string myname;
    cin >> myname;
    unsigned int length = sizeof(myname);
    char reverse[length];
    for (int i=length-1;i>=0;i--){
        reverse[i-1]=myname[length-i];
        }
    cout << reverse[0] << reverse[1] << reverse[2] << reverse[3] << reverse[4];
    _getch();
    return 0;
}