O(∩_∩)O哈哈~

· · 个人记录


#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void print(string str1,int b)
{
    for (int i=0;i<str1.size();++i)
    {
        cout<<str1[i];
        Sleep(b);
    }
    return;
}
int main()
{
    cout<<"Microsoft Windows [版本 6.1.7601]"<<endl;
    cout<<"版权所有 (c) 2009 Microsoft Corporation。保留所有权利。"<<endl;
    cout<<endl;
    while(1)
    {
        cout<<"C:/Users/Administrator>";
        string s;
        getline(cin,s);
        if (s=="操!不开机老子就砸了你!")
        {
            Sleep(1000);
            cout<<endl<<endl;
            cout<<"                          Loading Windows 2010";
            cout<<endl<<endl;
            print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",100);
            Sleep(1000);
            system("cls");
        }
        else
        {
            cout<<"‘"<<s<<"’"<<"不是内部或外部命令,也不是可运行的程序"<<endl;
            cout<<"或批处理文件。"<<endl;
            cout<<endl; 
        }
    }
    Sleep(50); 
}~~~