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

          在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 閱讀(631) 評論(0)  編輯  收藏 所屬分類: 技術(shù)積累
           
          主站蜘蛛池模板: 栾城县| 密山市| 长丰县| 南华县| 抚州市| 甘孜| 富宁县| 通化市| 大名县| 磐安县| 湖北省| 蓬溪县| 龙州县| 龙里县| 临清市| 安徽省| 大余县| 东明县| 彰武县| 昭苏县| 绿春县| 芦溪县| 连南| 大同县| 南丹县| 沈阳市| 囊谦县| 延川县| 砀山县| 淳化县| 高淳县| 来凤县| 多伦县| 长垣县| 嘉黎县| 柞水县| 徐水县| 黔东| 黄骅市| 汤原县| 右玉县|