📄 00000025.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: mephisto (魔鬼*修心养性*重新做人), 信区: Linux <BR>标 题: 计算机上的小闹剧 <BR>发信站: BBS 水木清华站 (Sun Oct 3 13:50:50 1999) <BR> <BR>Everything you always wanted to know about computers... <BR> <BR>INTRODUCTION <BR> <BR>BIOS: Hmm... I'm waking up. Linux Loader, are you there ? <BR> <BR>LILO: Hmm... Yes, I'm here. How do you do ? It's always a pleasure to work <BR> with you. <BR> Let's load the kernel and launch init, the Mother of All Processes... <BR> <BR>INIT PROCESS: Hmm... Thanks Lilo. Let's initialize the system, mount the <BR> file-systems and launch one hundred daemons. OK, now I'm ready for logins. <BR> <BR>LOGIN: Hey, I'm receiving a login request from user thierry, password guvreel. <BR> <BR>INIT PROCESS: Ha ha ! This user is stupid, his password is just his user name <BR> with a ROT13 encoding. Let's make fun of him. <BR> <BR>USER THIERRY: Hello everybody, please be kind with me today. I have a lot of <BR> serious things to do. <BR> <BR> <BR> <BR> <BR> <BR>CHAPTER I - A Real Programmer <BR> <BR>USER THIERRY: I'll start with that C++ program I have been trying to write <BR> for the last fifteen days. gcc, could you please compile it for me ? <BR> <BR>GCC COMPILER: Very well, sir. So, your program is myproc.C. Let's parse it. <BR> Preprocessor directives, class declarations, comments, type declarations <BR> ... Well, what is the purpose of this program ? Method declarations, <BR> other comments, macros... Hey, there are only declarations, no real code <BR> to do some real work. I'm completely lost in your code ! <BR> Each time I compile C++ code, I regret I'm not a Lisp interpreter. <BR> <BR>USER THIERRY: Oh, please, try another pass. I remember I wrote some real code <BR> around line 1764. <BR> <BR>GCC COMPILER: Line 1764 says: cout << "Hello, world" << endl. You're right, <BR> that is a piece of real and useful code, with no syntax error. Let's <BR> build and link that program... <BR> Now it's finished, here is your executable. <BR> <BR>USER THIERRY: Good, now I'll run it. <BR> <BR>MYPROG PROCESS: Hmm... I'm waking up. I am a C++ program, so I will first <BR> create a few objects which will consume a lot of memory for no reason <BR> at all. <BR> <BR>C++ OBJECT #1: I'm hungry ! Gimme memory ! <BR> <BR>C++ OBJECT #2: Memory ! I need more memory ! <BR> <BR>MYPROG PROCESS: Object #1, please free some memory for object #2. <BR> <BR>C++ OBJECT #1: No, I was programmed to eat memory and never release it. My <BR> programmer is an illiterate who has learnt C++ because it came before <BR> Visual Basic in the dictionary. <BR> <BR>SWAP PROCESS: EMERGENCY ! You are running low on memory. You have already used <BR> all of the swap space although you have just started ! <BR> <BR>MYPROG PROCESS: Object #2, you should really stop using all that memory or I'm <BR> going to install a garbage collector. <BR> <BR>C++ OBJECT #2: Never ! Garbage collectors are nazis who exterminate innocent <BR> objects and variables ! I'd rather dump core. <BR> <BR> [ noise of a core dump onto the hard disk ] <BR> <BR>USER THIERRY: Oh, oh ! My program has crashed before doing anything <BR> interesting. I am very surprised. <BR> <BR> <BR> <BR> <BR> <BR> CHAPTER II - Sending mail <BR> <BR>USER THIERRY: That's enough, I'll just send an email to the cpp-help mailing <BR> list, and maybe some C++ guru will have a solution for me. <BR> <BR>SENDMAIL DAEMON: Hello, this is sendmail, I'm listening to all your requests, <BR> day and night, on port 25. What can I do for you, sir ? <BR> <BR>USER THIERRY: Please send this email for me. <BR> <BR>SENDMAIL: Certainly, sir. Let's see... "It does not work, please help". Is <BR> that all, sir ? Express delivery or general delivery ? Express delivery, <BR> yes, of course. So the address is cpp-<A HREF="mailto:help@psy.doctor.com,">help@psy.doctor.com,</A> and the sender <BR> is Sucker. Is it correct ? <BR> <BR>USER THIERRY: What ? No, my name is Thierry, not Sucker. <BR> <BR>SENDMAIL: I'm sorry, sir, but I have been configured to rewrite your name as <BR>Sucker in your outgoing emails. Have you read my documentation ? <BR> <BR>USER THIERRY: Yes, of course. When I installed you, I read every man page, <BR>user guide and HOWTO before editing your configuration file... <BR> <BR>SENDMAIL: What ? Did you modify a Sendmail configuration file by hand ? It's <BR>far too complicated for a normal human being, don't you know that ? <BR> <BR>USER THIERRY: I only followed the instructions... <BR> <BR>SENDMAIL: You're clueless, I won't argue with you any more. Besides it's too <BR>late, I have already sent your ridiculous email to that mailing list where <BR>nobody will answer it or even read it. <BR> <BR> <BR> <BR> <BR> <BR> CHAPTER III - The Master <BR> <BR>USER THIERRY: No more C++ today. I need to calm down. xv, could you display a <BR>nice image for me ? <BR> <BR>XV PROCESS: Certainly, sir. Please admire this delightful mythological scen <BR>by Sandro Botticelli. Of course, it looks ugly on your screen because you <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -