华人德语培训中心     Fahrschule Rainer     
显示结果从 1 到 4 共计 4 条

混合查看

上一文章 上一文章   下一文章 下一文章
  1. #1
    高级会员 幼儿园小班
    注册日期
    2007-10-20
    住址
    sorry
    文章
    522
    Thanks
    0
    Thanked 1 Time in 1 Post
    声望力
    19

    12 Windows 98,XP,Vista的源代码,很有创意

    这些代码全是用C实现的,

    Windows 98:

    #include "win31.h"
    #include "win95.h"
    #include "evenmore.h"
    #include "oldstuff.h"
    #include "billrulz.h"
    #define INSTALL = HARD
    char make_prog_look_big[1600000]; /*使程序看起来很大*/
    void main()
    {
    while(!CRASHED) {  /*如果不崩溃*/
     display_copyright_message();  /*显示版权信息*/
     display_bill_rules_message();  /*显示比尔的规则的信息*/
     do_nothing_loop();        /*进行空循环*/
     if (first_time_installation) {  /*如果是第一次安装*/
      make_50_megabyte_swapfile();   /*创建50M的交换文件*/
      do_nothing_loop();        /*进行空循环*/
      totally_screw_up_HPFS_file_system(); /*将HPFS文件系统完全搞乱*/
      search_and_destroy_the_rest_of_OS/2(); /*搜寻并删除OS/2的所有残余信息*/
      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(); /*基本上运行Windows 3.1*/
      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.11"); */
    /* printf("Welcome to Windows 95"); */
    printf("Welcome to Windows 98"); /*输出“欢迎使用Windows 98”*/
    if (system_ok()) /*如果系统正常*/
     crash(to_dos_prompt); /*崩溃(到DOS提示符)*/
    else
     system_memory = open("a:\swp0001.swp", O_CREATE);
     /*否则打开a:\swp0001.swp作为系统内存*/
    while(something) {
     sleep(5);   /*睡眠5秒钟*/
     get_user_input(); /*接收用户输入*/
     sleep(5);   /*睡眠5秒钟*/
     act_on_user_input(); /*对用户输入起反应*/
     sleep(5);   /*睡眠5秒钟*/
     }
    create_general_protection_fault(); /*产生一般保护错误*/

    Windows XP:
    /*
    TOP SECRET Microsoft(c) Code
    Project: Chicago(tm)
    Projected release-date: MAY 2001
    $History$
    */

    #include "win31.h"
    #include "win95.h"
    #include "evenmore.h"
    #include "oldstuff.h"
    #include "billrulz.h"
    #define INSTALL = HARD

    char make_prog_look_big[1600000];

    void main()
    {
    while(!CRASHED)
    {
    display_copyright_message();
    display_bill_rules_message();
    do_nothing_loop();
    if (first_time_installation)
    {
    make_50_megabyte_swapfile();
    do_nothing_loop();
    totally_screw_up_HPFS_file_system();

    search_and_destroy_the_rest_of_OS/2();
    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();
    do_nothing_loop();
    do_nothing_loop();
    }
    }

    if (detect_cache())
    disable_cache();

    if (fast_cpu())
    {
    set_wait_states(lots);
    set_mouse(speed, very_slow);
    set_mouse(action, jumpy);
    set_mouse(reaction, sometimes);
    }

    /* printf("Welcome to Windows 3.11"); */
    /* printf("Welcome to Windows 95"); */
    /* printf("Welcome to Windows 98"); */
    /* printf("Welcome to Windows 2000"); */


    printf("Welcome to Windows XP");
    if (system_ok())
    crash(to_dos_prompt);
    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();
    }

    Windows Vista:

    /*

    GNOT General Public License!

    (c) 1995-2007 Microsoft Corporation

    */

    #include "dos.h"
    #include "win95.h"
    #include "win98.h"
    #include "sco_unix.h"

    class WindowsVista extends WindowsXP implements Nothing {}

    int totalNewFeatures = 3;
    int totalWorkingNewFeatures = 0;
    float numberOfBugs = 345889E+O8;
    boolean readyForRelease = FALSE;

    void main {
    while (!CRASHED) {

    if (first_time_install) {
    if ((installedRAM < 2GB) || (processorSpeed < 4GHz)) {
    MessageBox("Hardware incompatibility error.");
    GetKeyPress();
    BSOD();
    }
    }

    Make10GBswapfile():
    SearchAndDestroy(FIREFOX|OPENOFFICEORG|ANYTHING_GOOGLE);
    AddRandomDriver();
    MessageBox("Driver incompatibility error.");
    GetKeyPress();
    BSOD();
    }

    //printf("Welcome to Windows 2000");
    //printf(Welcome to Windows XP");
    printf ("Welcome to Windows Vista");

    if (still_not_crashed){
    CheckUserLicense();
    DoubleCheckUserLicense();
    TripleCheckUserLicense();
    RelayUserDetaitsToRedmond();
    DisplayFancyGraphics();
    FlickerLED(hard_drive);
    RunWindowsXP();

    return LotsMoreMoney,
    }
    }


    个人感觉写Windows Vista源代码的那位老兄实在太有才了,C语言是面向过程的,竟用到了class WindowsVista extends WindowsXP 实在是太强大了!
    此篇文章于 08-05-21 02:03 被 Turing 编辑。

  2. #2
    高级会员 幼儿园小班 kyoji-x 的头像
    注册日期
    2006-12-29
    文章
    667
    Thanks
    0
    Thanked 0 Times in 0 Posts
    声望力
    19

    预设 回复: Windows 98,XP,Vista的源代码,很有创意

    假得有点儿晕~ 呵呵,一笑而过
    http://115.img.pp.sohu.com/images/2007/6/10/0/22/113a9d258a6.gif

  3. #3
    高级会员 幼儿园小班 gen 的头像
    注册日期
    2008-05-11
    文章
    632
    Thanks
    0
    Thanked 0 Times in 0 Posts
    声望力
    18

    预设 回复: Windows 98,XP,Vista的源代码,很有创意

    关我什么事,我是来刷屏的

  4. #4
    高级会员 幼儿园小班
    注册日期
    2007-10-20
    住址
    sorry
    文章
    522
    Thanks
    0
    Thanked 1 Time in 1 Post
    声望力
    19

    预设 回复: Windows 98,XP,Vista的源代码,很有创意

    有些东西很真但却是假的,有些东西很假但却是真的!

主题讯息

目前查看此主题的会员

目前有1位用户正在查看此主题。(0 位会员和 1 游客)

发文规则

  • 不可以发表新主题
  • 不可以发表回复
  • 不可以上传附件
  • 不可以编辑自己的文章
  •