[FLUG] La stanza degli orrori di programmazione di Steve

  • From: Simon <f.simon@xxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Sun, 17 Mar 2002 13:35:56 +0100

Mailing List del Fortunae LUG
=============================

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Imperdibile, affascinante, del tutto esilarante!!!

http://www.sjbaker.org/steve/software/horrors.html


Vi cito una delle migliori:


   double cycleval_dbl ;
   char temp[100];
     .
     .
     .
   sprintf (temp, "%u", cycleval);
   cycleval_dbl  = atof (temp) * 1e-12;   /* from picoseconds to seconds */


- -- 
/* Federico 's1m0n' Simoncelli <f.simon@xxxxxxxx>
   http://www.jkcal.org/simon
*/ 
int main(){unsigned int g,h=0;while(++h){for(g=(h>1)?2:1;g<
h/2+1&&h%g!=0;g++);if(g==h/2+1)printf("%i\n",h);}return 0;}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8lI2V/ItriIBKan0RAlfHAKD8VlXU+mMytxsnDmbFFI3famnH1ACg7jHP
GVHd1DzD14n0T3cMdln5kTo=
=B9ob
-----END PGP SIGNATURE-----
--
"Una Slackware e' per sempre ..."


Other related posts:

  • » [FLUG] La stanza degli orrori di programmazione di Steve