Duran's technical life
          踏踏實實學(xué)技術(shù),認(rèn)認(rèn)真真做研究。

          在google里敲了“HelloWolrd”,再點“手氣不錯”,出來了這樣一個頁面:http://www2.latech.edu/~acm/HelloWorld.shtml

          Hello World!

          Welcome to the ACM "Hello World" project. Everyone has seen the Hello World program used as a first exposure to a new language or environment. We are attempting to collect examples for as many languages and related programming environments (shells etc.) as possible.


          Aproximate number of examples:204     <----wow~~~
          This page has been accessed 33274 times.
          Last updated: January 20, 2005   


          看看C的,經(jīng)典HelloWorld
          #include <stdio.h>
          main()
          {
            for(;;)
                {
                    printf ("Hello World!\n");
                }
          }


          這也是HelloWolrd?!
          a 1986 entry from Bruce Holloway:

          #include "stdio.h"
          #define e 3
          #define g (e/e)
          #define h ((g+e)/2)
          #define f (e-g-h)
          #define j (e*e-g)
          #define k (j-h)
          #define l(x) tab2[x]/h
          #define m(n,a) ((n&(a))==(a))

          long tab1[]={ 989L,5L,26L,0L,88319L,123L,0L,9367L };
          int tab2[]={ 4,6,10,14,22,26,34,38,46,58,62,74,82,86 };

          main(m1,s) char *s; {
              int a,b,c,d,o[k],n=(int)s;
              if(m1==1){ char b[2*j+f-g]; main(l(h+e)+h+e,b); printf(b); }
              else switch(m1-=h){
                  case f:
                      a=(b=(c=(d=g)<<g)<'<g)<<g;
                      return(m(n,a|c)|m(n,b)|m(n,a|d)|m(n,c|d));
                  case h:
                      for(a=f;a=e)for(b=g<<g;b<n;++b)o[b]=o[b-h]+o[b-g]+c;
                      return(o[b-g]%n+k-h);
                  default:
                      if(m1-=e) main(m1-g+e+h,s+g); else *(s+g)=f;
                      for(*s=a=f;a<e;) *s=(*s<<e)|main(h+a++,(char *)m1);
                  }
          }

          曾經(jīng)最短的HelloWorld(Jari.Arkko@lmf.eua.ericsson.se
          jar.1.c
          char*_="Hello world.\n";

          ln -s /dev/tty jar.1.o
          cc -c jar.1.c



          現(xiàn)在最短的HelloWorld (Jyrki Holopainen)
          ";main(){puts("Hello World!");}char*C=".c  
          char*_=__FILE__;

          posted on 2005-08-09 09:38 Duran's technical life 閱讀(635) 評論(0)  編輯  收藏 所屬分類: 技術(shù)積累
           
          主站蜘蛛池模板: 陆丰市| 仁寿县| 时尚| 阳高县| 邯郸县| 姚安县| 方正县| 佛坪县| 聂拉木县| 平度市| 饶平县| 盐边县| 华池县| 赞皇县| 沙湾县| 北京市| 当雄县| 姚安县| 吴川市| 江永县| 灌南县| 平邑县| 随州市| 肥城市| 金沙县| 伊川县| 灌南县| 开远市| 江阴市| 北碚区| 探索| 连平县| 浑源县| 唐河县| 兴仁县| 兴义市| 中西区| 关岭| 南昌市| 微山县| 那曲县|