PALMisLIFE 討論區

標題: Windows經典笑話 [列印本頁]

作者: vet2000    時間: 2001-7-30 23:39
標題: Windows經典笑話
  /* 這段程式我看可以列入Windows的經典笑話了.... */
   /* 註解版(不詳盡的地方或有淺顯有趣的解釋,請高手幫忙補上) */
   /* Source Code to Windows 2000 */
   #include "win31.h"  /*載入win31的程式碼*/
   #include "win95.h"  /*載入win95的程式碼*/
   #include "win98.h"  /*載入win98的程式碼*/
   #include "workst~1.h"
   #include "evenmore.h"
   #include "oldstuff.h"
   #include "billrulz.h"  /*載入Bill的法則*/
   #include "monopoly.h"
   #define INSTALL HARD
  
   char make_prog_look_big(1600000);  /* 讓程式看起來非常大 */
  
   void main()
   {  while(!CRASHED)   /* 假如沒有當機 */
     {
       display_copyright_message(); /* 顯示版權訊息 */
       display_bill_rules_message();   /* 顯示bill的法則 */
       do_nothing_loop();   /* 無所事事迴圈 */
       if (first_time_installation) /* 如果是第一次安裝 */
         {
           make_50_megabyte_swapfile(); /* 做一個超大的交換檔案 */
           do_nothing_loop();  /* 無所事事迴圈 */
           totally_screw_up_HPFS_file_system(); /* 整個拆掉?? HPFS檔案系統
                                                   (OS2的檔案系統) */
           search_and_destroy_the_rest_of_OS/2(); /* 搜尋然後破壞OS2 */
           make_futile_attempt_to_damage_Linux(); /* 企圖破壞Linux */
           disable_Netscape();   /* 關掉Netscape */
           disable_RealPlayer();   /* 關掉RealPlayer */
           disable_Lotus_Products();  /* 關掉Lotus相關產品 */
           hang_system();    /* 把電腦當掉 */
         }
       write_something(anything);   /* 胡亂寫入一堆東西 */
       display_copyright_message();  /* 顯示版權訊息 */
       do_nothing_loop();    /* 無所事事迴圈 */
       do_some_stuff();    /* 做些沒用的事 */
  
       if (still_not_crashed)   /* 如果還是沒有當機 */
       {
         display_copyright_message();  /* 顯示版權訊息 */
         do_nothing_loop();   /* 無所事事迴圈 */
         basically_run_windows_3.1();  /* 根本就是在跑win31 */
         do_nothing_loop();   /* 無所事事迴圈 */
         do_nothing_loop();   /* 無所事事迴圈 */
       }
     }
     if (detect_cache())    /* 是否有快取記憶體 */
       disable_cache();    /* 關掉快取記憶體 */
      if (fast_cpu())    /* 是不是速度快的CPU */
     {
       set_wait_states(lots);   /* 讓等待時間非常久 */
       set_mouse(speed, very_slow);  /* 讓滑鼠速度非常慢 */
       set_mouse(action, jumpy);   /* 讓滑鼠動作方式為跳躍式 */
       set_mouse(reaction, sometimes);  /* 讓滑鼠重新動作時間很久 */
     }
  
       /* printf("Welcome to Windows 3.1"; */
       /* printf("Welcome to Windows 3.11"; */
       /* printf("Welcome to Windows 95"; */
       /* printf("Welcome to Windows NT 3.0"; */
       /* printf("Welcome to Windows 98"; */
       /* printf("Welcome to Windows NT 4.0"; */
  
    /* 以上代表win2000包還很多之前程式碼,完全沒有清除 */
  
    printf("Welcome to Windows 2000";
  
     if (system_ok())    /* 如果機器還活著 */
       crash(to_dos_prompt)   /* 把DOS命令列當掉 */
     else     /* 否則 */
       system_memory = open("a:\swp0001.swp",O_CREATE);  
               /* 在軟碟機開一個交換檔 */
  
     while(something)   /* ?? */
     {
       sleep(5);    /* 睡五次覺 */
       get_user_input();   /* 然後才讀取user的輸入 */
       sleep(5);    /* 睡五次覺 */
       act_on_user_input();  /* 才處理user的輸入 */
       sleep(5);    /* 睡五次覺 */
     }
     create_general_protection_fault(); /* ?? */
   }
作者: tales    時間: 2001-8-14 15:07
標題: 回覆: Windows經典笑話
要看懂這個笑話的門檻有點高,
還好我多少看的懂:)
  
好狠毒啊....
作者: azazabc123    時間: 2004-12-24 20:11
標題: Re: Windows經典笑話
不知Microsoft在幹啥?
作者: 拿波里昂    時間: 2004-12-24 20:19
標題: Re: Windows經典笑話
看了半天~~
重點是...

我還真的相信是這樣
作者: lyr    時間: 2004-12-24 22:04
標題: Re: Windows經典笑話
好像少了個製造藍底白字畫面的片段...  
|)|)|)|)
作者: francis_lou    時間: 2004-12-24 23:57
標題: Re: Windows經典笑話
最後一行吧... GPF...
作者: achen    時間: 2004-12-25 03:06
標題: Re: Windows經典笑話
totally_screw_up_HPFS_file_system(); /* 整個拆掉?? HPFS檔案系統   */
如果用"拆掉"似乎比較接近 "remove" 而不是破壞性的 "screw up"
用"毀掉"如何?

sleep(5);    /* 睡五次覺 */
sleep(5) 不是睡覺的意思, 是暫停五秒鐘

最後一行 create_general_protection_fault(); /* ?? */
你就用"顯示藍色當機畫面"就差不多是他的意思了

[ Last edited by achen on 2004-12-24 at 20:02 ]
作者: closer    時間: 2004-12-27 13:21
標題: Re: Windows經典笑話
Originally posted by achen at 2004-12-25 03:06 AM:
totally_screw_up_HPFS_file_system(); /* 整個拆掉?? HPFS檔案系統   */
如果用"拆掉"似乎比較接近 "remove" 而不是破壞性的 "screw up"
用"毀掉"如何?

sleep(5);    /* 睡五次覺 */
sleep(5) 不是睡覺的意思, 是暫停五秒鐘


是 5 ms.....5/1000 秒。
每一個 cycle 都停 5 秒鐘誰受得了? -_-|||

最後一行 create_general_protection_fault(); /* ?? */
你就用"顯示藍色當機畫面"就差不多是他的意思了


會打  ?? 就表示這個人沒玩過 Windows 3.1....:p
作者: closer    時間: 2004-12-27 20:56
標題: Re: Windows經典笑話
/* Source Code to Windows 2000 */
   #include "win31.h"       /*                              */
   #include "win95.h"       /* 表示還是用到很多以前的函式庫 */
   #include "win98.h"       /*                              */
   #include "workst~1.h"    /* 表示長檔名的骨子裡還是短檔名 */
   #include "evenmore.h"    /* 更多有的沒的 */
   #include "oldstuff.h"    /* 老東西 */
   #include "billrulz.h"    /* 「Bill Gates 就是王道!」*/
   #include "monopoly.h"    /* 壟斷事業 */
   #define INSTALL HARD     /* 很難安裝 */
  
   char make_prog_look_big(1600000);  /* 讓程式看起來非常大 */
  
   void main()
   {  while(!CRASHED)   /* 假如沒有當機 */
     {
       display_copyright_message();     /* 顯示版權訊息 */
       display_bill_rules_message();    /* 顯示「Bill 是老大!」訊息 */
       do_nothing_loop();               /* 無所事事迴圈 */
       if (first_time_installation)     /* 如果是第一次安裝 */
         {
           make_50_megabyte_swapfile(); /* 做一個超大的交換檔案 */
           do_nothing_loop();           /* 無所事事迴圈 */
           totally_screw_up_HPFS_file_system();
                                        /* 摧毀 HPFS (OS2的檔案系統) */
           search_and_destroy_the_rest_of_OS_2();
                                        /* 搜尋然後破壞 OS2 */
           make_futile_attempt_to_damage_Linux();
                                        /* 嚐試去破壞 Linux */
           disable_Netscape();          /* 關掉Netscape */
           disable_RealPlayer();        /* 關掉RealPlayer */
           disable_Lotus_Products();    /* 關掉Lotus相關產品 */
           hang_system();               /* 把電腦當掉 */
         }
       write_something(anything);       /* 胡亂寫入一堆東西 */
       display_copyright_message();     /* 顯示版權訊息 */
       do_nothing_loop();               /* 無所事事迴圈 */
       do_some_stuff();                 /* 做些沒用的事 */
  
       if (still_not_crashed)           /* 如果還是沒有當機 */
       {
         display_copyright_message();   /* 顯示版權訊息 */
         do_nothing_loop();             /* 無所事事迴圈 */
         basically_run_windows_3_1();   /* 根本就是在跑 win31 */
         do_nothing_loop();             /* 無所事事迴圈 */
         do_nothing_loop();             /* 無所事事迴圈 */
       }
     }
     if (detect_cache())                /* 如果有快取記憶體的話 */
       disable_cache();                 /* 關掉快取記憶體 */
     if (fast_cpu())                    /* 如果 CPU 速度很快的話 */
     {
       set_wait_states(lots);           /* 讓等待時間非常久 */
       set_mouse(speed, very_slow);     /* 讓滑鼠速度非常慢 */
       set_mouse(action, jumpy);        /* 讓滑鼠游標跳格 */
       set_mouse(reaction, sometimes);  /* 讓滑鼠反應速度變長 */
     }
  
       /* printf("Welcome to Windows 3.1"; */
       /* printf("Welcome to Windows 3.11"; */
       /* printf("Welcome to Windows 95"; */
       /* printf("Welcome to Windows NT 3.0"; */
       /* printf("Welcome to Windows 98"; */
       /* printf("Welcome to Windows NT 4.0"; */
       printf("Welcome to Windows 2000");
      
       /* 以上表示 win2000 只是把舊有的 Windows 換個名字,根本沒大改 */
  
  
     if (system_ok())           /* 如果機器還活著 */
       crash(to_dos_prompt)     /* 把DOS命令列當掉 */
     else                       /* 否則 */
       system_memory = open("a:\swp0001.swp",O_CREATE);  
                                /* 在軟碟機開一個交換檔 */
  
     while(something)           /* 如果有任何事件(使用者操作) */
     {
       sleep(5);                /* 先暫停動作千分之五秒 */
       get_user_input();        /* 然後才讀取使用者的輸入 */
       sleep(5);                /* 再暫停動作千分之五秒 */
       act_on_user_input();     /* 才依使用者的輸入做正事 */
       sleep(5);                /* 最後再再暫停動作千分之五秒 */
     }
     create_general_protection_fault();
             /* 產生 GPF (Windows 3.1 的術語) */
             /* 用 Win95/98 的語言來說就是 "您的應用程式發生了錯誤...." */
             /* 用 WinXP 的語言來說就是 "XXX 發生問題,必須關閉...."    */
   }
作者: 迪克    時間: 2004-12-27 22:48
標題: Re: Windows經典笑話
Originally posted by closer at 2004-12-27 08:56 PM:
  crash(to_dos_prompt)     /* 把DOS命令列當掉 */


應該說是當(crash())到DOS命令列(to_dos_prompt

寫這個的人真是超絕啊,應該是對Microsoft深痛惡絕了吧
作者: FosterTAZ    時間: 2004-12-28 01:16
標題: Re: Windows經典笑話
這學期程式有認真學 (汗)





歡迎光臨 PALMisLIFE 討論區 (http://f.pil.tw/) Powered by Discuz! X2.5