当前位置:梁山文学城 网络泥巴中文文字mud综合门户网站 泥巴摘录 网络泥巴中文文字mud综合门户网站 西游往事 网络泥巴中文文字mud综合门户网站

 The Evolution of a Programmer

The Evolution of a Programmer

精彩泥巴推荐

标题 作者 内容

作者:格格巫(Mon)    更新时间:2004-12-16   阅读次数: 40 次  

相关评论:0 篇   暂时无人对本文评分! 关键字:(暂无)

来源:西游记2000总站story 9 16 1997

[ 16] The Evolution of a Programmer       格格巫(Mon) (Wed Sep 24)

--------------------------------------------------------------------------------

>>>The Evolution of a Programmer

>>>

>>>High School/Jr.High

>>>

>>>

>>>    10 PRINT "HELLO WORLD"

>>>    20 END

>>>

>>>

>>>

>>>First year in College

>>>

>>>

>>>     program Hello(input, output)

>>>     begin

>>>      writeln('Hello World')

>>>     end.

>>>

>>>

>>>

>>>Senior year in College

>>>

>>>

>>>     (defun hello

>>>     (print

>>>      (cons 'Hello (list 'World))))

>>>

>>>

>>>

>>>New professional

>>>

>>>

>>>     #include 

>>>    void main(void)

>>>     {

>>>     char *message[] = {"Hello ", "World"};

>>>      int i;

>>>

>>>      for(i = 0; i < 2; ++i)

>>>       printf("%s", message[i]);

>>>      printf("\n");

>>>    }

>>>

>>>

>>>

>>>Seasoned professional

>>>

>>>

>>>    #include 

>>>    #include 

>>>     class string

>>>    {

>>>     private:

>>>     int size;

>>>      char *ptr;

>>>     public:

>>>      string() : size(0), ptr(new char('\0')) {}

>>>      string(const string &s) : size(s.size)

>>>     {

>>>      ptr = new char[size + 1];

>>>      strcpy(ptr, s.ptr);

>>>      }

>>>      ~string()

>>>     {

>>>      delete [] ptr;

>>>      }

>>>      friend ostream &operator <<(ostream &, const string &);

>>>      string &operator=(const char *);

>>>     };

>>>     ostream &operator<<(ostream &stream, const string &s)

>>>     {

>>>      return(stream << s.ptr);

>>>     }

>>>     string &string::operator=(const char *chrs)

>>>     {

>>>     if (this != &chrs)

>>>      {

>>>      delete [] ptr;

>>>     size = strlen(chrs);

>>>     ptr = new char[size + 1];

>>>       strcpy(ptr, chrs);

>>>     }

>>>      return(*this);

>>>    }

>>>     int main()

>>>     {

>>>      string str;

>>>      str = "Hello World";

>>>      cout << str << endl;

>>>      return(0);

>>>     }

>>>

>>>

>>>

>>>Apprentice Hacker

>>>

>>>

>>> #!/usr/local/bin/perl

>>> $msg="Hello, world.\n";

>>> if ($#ARGV >= 0) {

>>>  while(defined($arg=shift(@ARGV))) {

>>>   $outfilename = $arg;

>>>   open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";

>>>   print (FILE $msg);

>>>   close(FILE) || die "Can't close $arg: $!\n";

>>>  }

>>> } else {

>>>  print ($msg);

>>> }

>>> 1;

>>>

>>>

>>>

>>>Experienced Hacker

>>>

>>>

>>> #include 

>>> #define S "Hello, World\n"

>>> main(){exit(printf(S) == strlen(S) ? 0 : 1);}

>>>

>>>

>>>

>>>Seasoned Hacker

>>>

>>>

>>> % cc -o a.out ~/src/misc/hw/hw.c

>>> % a.out

>>>

>>>

>>>

>>>Guru Hacker

>>>

>>>

>>> % cat

>>> Hello, world.

>>> ^D

>>>

>>>

>>>

>>>New Manager

>>>

>>>

>>> 10 PRINT "HELLO WORLD"

>>> 20 END

>>>

>>>

>>>

>>>Middle Manager

>>>

>>>

>>> mail -s "Hello, world." bob@b12

>>> Bob, could you please write me a program that prints "Hello, world."?

>>> I need it by tomorrow.

>>> ^D

>>>

>>>

>>>

>>>Senior Manager

>>>

>>>

>>> % zmail jim

>>> I need a "Hello, world." program by this afternoon.

>>>

>>>

>>>

>>>Chief Executive

>>>

>>>

>>> % letter

>>> letter: Command not found.

>>> % mail

>>> To: ^X ^F ^C

>>> % help mail

>>> help: Command not found.

>>> % damn!

>>> !: Event unrecognized

>>> % logout

>>>

>>>

>

>

>

>----- End Included Message -----

>

>

>

----- End Included Message -----

----- End Included Message -----

【本页链接】http://www.aolai.org/article/2004-12/article-1103127837.htm

返回水泊梁山首页    返回本目录    上一篇: 旅行者――寂寞中的独白    下一篇: map of heaven
   我要评论 姓名:
  内容:  请控制字数少过128个中文字
  天书: 
   我要评分 分数:  介于0.00~5.00之间,满分5分!   
   相关评论( 本文暂无相关评论)

搜索泥巴妙文

更多泥巴摘录妙文

  z赚钱 [50]
  2006年春节水陆大会比武 [621]
  2006春节比武大会第一级 [358]
  2006春节比武大会第二级 [219]
  2006春节比武大会第三级 [263]
  比武时间 [189]
  水陆大会 [169]
  靠!孙悟空永远是我偶 [213]
  2006新年水陆大会第四级 [102]
  2006新年水陆大会第五级 [109]
  2006新年水陆大会第六级 [99]
  2006新年水陆大会分组方 [128]
  2006年春节水陆大会比武 [108]
  关于比武时间 [89]
  2006年春节水陆大会比武 [89]
  春节比武大会投稿 [126]
  2006春节水陆大会比武奖 [194]
  2006 年春节自由技击大会 [104]