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

          在google里敲了“HelloWolrd”,再點(diǎn)“手氣不錯(cuò)”,出來了這樣一個(gè)頁面: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 閱讀(631) 評論(0)  編輯  收藏 所屬分類: 技術(shù)積累
           
          主站蜘蛛池模板: 旌德县| 克什克腾旗| 修文县| 舟曲县| 阿克苏市| 东乌| 桃江县| 南丹县| 赤壁市| 桑日县| 交口县| 星座| 桐柏县| 枣庄市| 黑河市| 平昌县| 巴南区| 金堂县| 宝应县| 临漳县| 井研县| 宁德市| 平谷区| 贺州市| 静乐县| 紫阳县| 中江县| 河津市| 吉安县| 渝北区| 兴隆县| 滨州市| 新乐市| 乾安县| 安乡县| 隆回县| 阿坝县| 当雄县| 乃东县| 余庆县| 谢通门县|