嗯对大概就是超级抽象的DeepSleep。

· · 休闲·娱乐

嗯对大概就是DeepSleep吧。
嗯对DeepSleep是个“智能”的AI。

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;

int main(){
    bool pre=false;
    int sd=0;
    cout<<"欢迎使用DeepSleep v1.1.4.5"<<endl;
    cout<<"当前非最新版本,是否更新(Y/N)"<<endl;
    while(true){
        char a;
        cin>>a;
        if(a=='Y'||a=='y'){
            system("cls");
            cout<<"安装包下载中..."<<endl;
            Sleep(3300);
            system("cls");
            cout<<"资源解压中..."<<endl;
            Sleep(5000);
            system("cls");
            cout<<"资源分析中..."<<endl;
            Sleep(4000);
            for(int i=0;i<=100;i++){
                system("cls");
                cout<<"更新中 "<<i<<"%"<<endl;
                Sleep(30);
            }
            system("cls");
            cout<<"更新成功!1s后启动系统"<<endl;
            Sleep(1000);
            system("cls");
            cout<<"欢迎使用DeepSleep v1.9.8.1"<<endl;
            pre=true;
            break;
        }
        if(a=='N'||a=='n'){
            break;
        }
    }
    while(true){
        string in;
        cout<<":";
        cin>>in;
        Sleep(5000);
        cout<<"服务器繁忙,请稍后再试"<<endl;
        if(pre) sd++;
        if(sd>=5){
            cout<<"服务器连接丢失!进行网络诊断中..."<<endl;
            Sleep(3000);
            cout<<"网络连接成功!"<<endl;
        }
    }

    return 0;
} 

嗯对是超级抽象的代码和效果。