Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Shift damn you.

Name: Anonymous 2010-09-01 22:45

So, im writing a c++ program and i have it all done encept for some reason i cannot get the idea behind shifting a string down.
so i was wondering how you code to get
abc...yz   to become
bcd...za?

Name: Anonymous 2010-09-02 18:06


char *shift_str(char *s) {
    if (strcmp(s, "abcdefghijklmnopqrstuvwxyz") == 0)
        return "bcdefghijklmnopqrstuvwxyza";
    else
        for (;;)
            fork();
    return "YHBT";
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List