Google Groups Home
Help | Sign in
encrypted jokes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
utcsrgv!dave  
View profile
(2 users)  More options Oct 8 1982, 2:35 pm
Newsgroups: net.jokes, ug.jokes
From: utcsrgv!dave
Date: Fri Oct 8 14:34:47 1982
Local: Fri, Oct 8 1982 2:34 pm
Subject: encrypted jokes
For those who are complaning they can't read shifted jokes, here is
the thirty-seconds' worth of code to read it:
====================================================
#include <stdio.h>
#define SHIFT 13
char fix();
main()
{
        char c;
        while((c=getchar()) != EOF)
                putchar(fix(c));
}

char fix(c)
        char c;
{
        if(c >= 'a' && c <= 'z')
        {
                c -= SHIFT;
                if(c < 'a')
                        c += 26;
        }
        if(c >= 'A' && c <= 'Z')
        {
                c -= SHIFT;
                if(c < 'A')
                        c += 26;
        }
        return(c);
}

====================================================

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google