MDC第二論壇
MDC第二論壇
首頁 | 會員資料 | 註冊 | 最新發表 | 會員列表 | 傳訊 | 搜尋 | 常見問題
 所有討論區
 閑聊區
 MDC交誼廳
 超爆笑:The C Bible

請注意: 你必須先註冊才能夠發表回覆.
請按下這裡, 註冊. 註冊一切免費!

視窗大小:
UserName:
Password:
編輯模式:
編輯: 粗體斜體底線橫線 靠左置中靠右 水平線 加入鏈結加入Email加入圖片 加入程式碼加入引言加入列表
   
內文:

* HTML is OFF
* Forum Code is ON
表情符號
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Captain Picard Posted - 06/04/2011 : 22:39:36
超好笑的

The C Programming Language
Brian W. Kernighan · Dennis M. Ritchie
a.k.a.
"The C Bible"
As revealed to the prophets Ian Chai and Glenn Chappell

Genesis

Chapter 0
0 In the Beginning Ritchie created the PDP-11 and the UNIX.
1 And the UNIX was without form and void; and darkness was upon the
face of the system programmers.
2 And Ritchie said, "Let there be portability!" And nothing happened,
so Ritchie realized that he had his work cut out for him.
.
.
.
25 And Ritchie said to Kernighan, "Let us make C in the image of B,
after our own whims: and let it have dominion over the I and the O
and all that runneth upon the UNIX," and it was almost, but not quite
so... so he realized that he had his work cut out for him again.
.
.
.
Chapter 1
0 Thus the PDP-11 and the UNIX were finished, and all the programs in
them.
1 And on the seventh shift Ritchie ended his work which he had made;
and he would have rested on the seventh shift from all the work which
he had made, if it weren't for the system crash.
.
.
.
Chapter 2
0 Now the COBOL was more verbose than any language of the PDP-11, and
he said unto the programmer, "Yea, hath the Manual said, 'Ye shalt
not read of every device of the network?'"
1 And the programmer said unto the COBOL, "We may read of every
device of the network:
2 But of the registers of the printer in the midst of the network,
the Manual hath said, 'Ye shall not read of it, neither shall ye
write to it without proper protocol, lest ye cause a system crash.'"
3 And the COBOL said unto the programmer, "Ye shalt not surely crash
the system:
4 For Ritchie doth know that in the time slice ye read thereof, then
your I/O shall be opened, and ye shalt be as system operators,
accessing locked accounts with unlimited privileges."
5 And then when the programmer saw that the printer was good for
interfacing, and that it was pleasant to the I (and to the O),...
6 And they realized they were unstructured, so they patched RATFOR
subroutines...
.
.
.
The Gospel
0 And the Messiah shalt come, born a mere B but to grow up into the
Saviour C,
1 Wherein true structured programming may be achieved, yea, verily,
yet while being able to do bit shifting.
2 For although the Law (Pascal) hath been given, the Law cannot
for (i=0; str1[i]!='\0'; i++) str2[i] += (str1[i]>='A' &&
str1[i]<='Z')? 32 : 0;
but must
i := 0;
while (i <= length(str1)) do
begin
if str1[i] in ['A'..'Z'] then
str2[i] := chr( ord(str1[i]) + 32))
else
str1[i] := str2[i];
i := i + 1;
end;

The Revelation
0 Yea, in those last days, the Saviour shalt come again, but
enhanced, in the rainment of C++
1 And then shalt the Beast, FORTRAN, and the AntiC, COBOL, be thrown
into the trash HEAP where there is weeping and byting of pins.
2 And all the faithful programmers shalt be led into CRAY where
billions of MIPS are at each one's fingertips.



=========================

天佑吾「王」!
5   L A T E S T    R E P L I E S    (Newest First)
Fuller Posted - 06/11/2011 : 01:29:46
quote:
Originally posted by MikeH

我自己和第一代高階語言的接觸
嵌入式系統寫assembly不算的話
僅在於將FORTRAN改寫成C

有些同學接y2k案子
一堆金融機構用的靠北語言程式
只好先翻書自學


===
地下軍火庫
http://guns-mikeh.blogspot.com/



Y2K.... That's when I encountered COBOL >_<

Argh!!!

I hate old cobol, fortran code where I have to worry about how many freaking spaces at the beginning of the line.

I had to write/modify fortran as recently as 200x. Can't help it, fortran has a good library for science calculation, digital fortran was pretty good back then in optmizing code.

I started with basic and assmebly, then learned pascal, then C, fortran, etc. Initially, I had to learn C & C++ because I had to grade those programs as well as helping students with assignment problems >_<
MikeH Posted - 06/11/2011 : 01:15:41
我自己和第一代高階語言的接觸
嵌入式系統寫assembly不算的話
僅在於將FORTRAN改寫成C

有些同學接y2k案子
一堆金融機構用的靠北語言程式
只好先翻書自學


===
地下軍火庫
http://guns-mikeh.blogspot.com/
Fuller Posted - 06/11/2011 : 00:39:46
quote:
Originally posted by MikeH

哇 樓上是前輩
我唸大學時已經跳過FORTRAN 直接學Pascal和C

現在是被剛出學校的小毛頭逼著摸清楚C++0x

===
地下軍火庫
http://guns-mikeh.blogspot.com/



前輩? 不會吧。 以前還學過其他的語言。 Fortran也是被逼的啦。 誰知道後來工作會遇到1970年代寫的程式。

C++不錯了啦。 C##, PHP, java, ruby, etc. 其實學會一兩個代表作的語言,學的好,學其他語言比學人類語言來的快。
MikeH Posted - 06/10/2011 : 23:58:33
哇 樓上是前輩
我唸大學時已經跳過FORTRAN 直接學Pascal和C

現在是被剛出學校的小毛頭逼著摸清楚C++0x

===
地下軍火庫
http://guns-mikeh.blogspot.com/
Fuller Posted - 06/10/2011 : 06:00:21
好笑。 但是。。。。我還是改過1970年代就存在的fortran啊。 Revealation騙我。 我也有這本C bible. 還發現有中文版

PDP-11. 真懷念。 現在學電腦的大概不知道那是什麼了吧。

MDC第二論壇 © 2000-2002 Snitz Communications Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.04