Re: sigs (was Re: Minor change in the F.A.Q. Please read.)
From Nir Levy <nle...@usa.net.TO_EMAIL_REMOVE_THIS>
· alt.ascii-art
· 3 Dec 1997 00:00 · View full thread
· report
In alt.ascii-art, Gerard Thornley <SMPT:GTH...@EuropeM01.nt.com> saw fit to bestow on us: >> This little C program will "scramble"/"unscramble" text for you: >> >> #include <stdlib.h> >> #include <stdio.h> >> >> main() >> { >> int ch; >> >> while ((ch = getchar()) != EOF) >> { >> if ((ch >= 65) && (ch <= 90)) >> { >> ch = 65 + ((ch - 65) + 13) % 26; >> } >> if ((ch >= 97) && (ch <= 122)) >> { >> ch = 97 + ((ch - 97) + 13) % 26; >> } >> printf("%c", ch); >> } >> } Why no just do: main() { int ch; while ((ch = getchar()) != EOF) { ch ^= 1; printf("%c", ch); } } ?? /NL -- Nir Levy, The above opinions are my own, nlevy @ usa.net not my employer's. -- I didn't do it; Nobody saw me do it; You can't prove anything; -Bart Simpson --
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,5e20dd0eb81e05d7 X-Google-Attributes: gidf996b,public From: nle...@usa.net.TO_EMAIL_REMOVE_THIS (Nir Levy) Subject: Re: sigs (was Re: Minor change in the F.A.Q. Please read.) Date: 1997/12/03 Message-ID: <348...@news.ibm.net.il>#1/1 X-Deja-AN: 294842367 References: <347...@inspace.net> <347...@slip.net> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <65npea$do8$9...@usenet88.supernews.com> <347...@on.spammer> <348...@EuropeM01.nt.com> Organization: (none) Reply-To: nle...@usa.net.TO_EMAIL_REMOVE_THIS Newsgroups: alt.ascii-art
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 1997 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.