🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.objects
Article #4667

Re: Prawda o C++

#4667
From: Kazimierz Subieta
Date: Mon, 25 Jan 1999 12:06
81 lines
3212 bytes

Bartosz Polednia wrote:

> High School/Jr.High
> ===================
> 10 PRINT "HELLO WORLD"
> 20 END
>
> First year in College
> =====================
> program Hello(input, output)
>   begin
>     writeln('Hello World')
>   end.

[.....]

Z tej samej beczki: haslo z (przeogromnego)
Free On-line Dictionary of Computing,
http://wombat.doc.ic.ac.uk/, Editor Denis Howe
============================================
Obfuscated C Contest

    <programming> The International Obfuscated C Code Contest
    (IOCCC) is an annual contest run since 1984 over {Usenet} by
    Landon Curt Noll and friends.  The overall winner is whoever
    produces the most unreadable, creative, and bizarre (but
    working) {C} program.  Various other prizes are awarded at the
    judges' whim.  C's terse {syntax} and {macro-preprocessor}
    facilities give contestants a lot of maneuvering room.  The
    winning programs often manage to be simultaneously funny,
    breathtaking works of art and horrible examples of how *not*
    to code in C.

    This relatively short and sweet entry might help convey the
    flavour of obfuscated C:

     /*
     * HELLO WORLD program
     * by Jack Applin and Robert Heckendorn, 1985
     */
     main(v,c)char**c;{for(v[c++]="Hello, world!\n)";
     (!!c)[*c]&&(v--||--c&&execlp(*c,*c,c[!!c]+!!c,!c));
     **c=!c)write(!!*c,*c,!!**c);}

    Here's another good one:

     /*
     * Program to compute an approximation of pi
     *  by Brian Westley, 1988
     */

     #define _ -F<00||--F-OO--;
     int F=00,OO=00;
     main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
     {
            _-_-_-_
           _-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_-_-_-_-_
      _-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
      _-_-_-_-_-_-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_
            _-_-_-_
     }

    Note that this program works by computing its own area.  For
    more digits, write a bigger program.  See also {hello, world}.

==============================================
Najlepszego
KS
Technical Details
Message-ID: <36AC5E52.ACAE39C1@ipipan.waw.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!not-for-mail
References: <36AC3EB7.42B65B41@bxsoft.rzeszow.pl> <199901251019.LAA09093@dumb.iinf.polsl.gliwice.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!not-for-mail
From: Kazimierz Subieta <subieta@ipipan.waw.pl>
Newsgroups: pl.comp.objects
Subject: Re: Prawda o C++
Date: Mon, 25 Jan 1999 13:06:42 +0100
Organization: http://news.icm.edu.pl/
Lines: 82
Message-ID: <36AC5E52.ACAE39C1@ipipan.waw.pl>
References: <36AC3EB7.42B65B41@bxsoft.rzeszow.pl> <199901251019.LAA09093@dumb.iinf.polsl.gliwice.pl>
NNTP-Posting-Host: carina.ipipan.waw.pl
Mime-Version: 1.0
X-Trace: sunsite.icm.edu.pl 917266003 14034 148.81.206.38 (25 Jan 1999 12:06:43 GMT)
X-Complaints-To: abuse@news.icm.edu.pl
NNTP-Posting-Date: 25 Jan 1999 12:06:43 GMT
X-Mailer: Mozilla 4.06 [en] (WinNT; I)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit