问题标题: 酷町堂:x服务器1.0版

0
0
已解决
熊智晖
熊智晖
高级天翼
高级天翼
#include<iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<winioctl.h>
#include<assert.h>
#include<ctype.h>
#include<cstdlib>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<cstdio>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<assert.h>
#define CLS SetPos(1000,1000) 
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<cmath>
#include<algorithm>
#include<string>
#include<conio.h>
#include<windows.h>
#include<iomanip>
#include<bits/stdc++.h>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<conio.h>
#include <winable.h> 
#pragma GCC optimize(2)
#define qdo 262 
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#include<vector> 
#include<cstring>
#include<string>
#include<cstdlib>
#include<cmath>
#include<ctime>
#include<windows.h>
#include<fstream>
#include<iomanip>
#include<conio.h>
#define qdo 262 
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#pragma GCC diagnostic error "-std=c++11"
#pragma GCC target("avx")
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(3)
#include<bits/stdc++.h>
#include<windows.h>
#include<cstdio>
#include<iostream>
#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
using namespace std;
int main(){ 
    int q,c;
    cout<<"\n\n\n\n\n\n\t\t\t\t\t\t欢迎来到x服务器1.0版"; 
    Sleep(2000); 
    {
        for(int kai;kai<=101;kai++){
            if(q>=100){

                system("cls");
                cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t 加载完成!";
                Sleep(1300);
                break;
            }
            cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t  "<<q<<"%";
            Sleep(30);
            q+=1;
            system("cls");

        }
    }
    system("cls");
    Sleep(1000);
    cout<<"输入你的名字";
    string a;
    cin>>a;
    Sleep(500);
    cout<<"\n\n你好,"<<a<<"。加油!"; 
    Sleep(2000);
    system("cls");
    cout<<"\n\n\n\n\n"<<"\t\t\t\t抵制不良游戏";
    cout<<" "<<"\t\t\t拒绝盗版游戏";
    Sleep(500);
    cout<<"\n"<<"\t\t\t\t注意自我保护"; 
    cout<<" "<<"\t\t\t谨防受骗上当"; 
    Sleep(500);
    cout<<"\n"<<"\t\t\t\t适度游戏益脑"; 
    cout<<" "<<"\t\t\t沉迷游戏伤身";
    Sleep(500); 
    cout<<"\n"<<"\t\t\t\t合理安排时间"; 
    cout<<" "<<"\t\t\t享受健康生活"; 
    Sleep(3000);
    system("cls");
    cout<<"作者:";
    Sleep(300);
    cout<<"熊";
    Sleep(300);
    cout<<"智";
    Sleep(300);
    cout<<"晖";
    Sleep(900);
    Sleep(1500);
    system("cls");
    cout<<"\n\n\n\n\n\t\t\t\t   ____________________________________________________";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       1.小游戏  \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       2.关机代码\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       3.退出游戏\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       4.音乐    \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       5.其他    \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |版本:2.0"<<"\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  -----------------------------------------------------\n\t\t\t\t\t\t\t 请输入:"; 
        int b;
        cin>>b;
        if(b==1){
                int z1,z2,z3,hhyx=100;
              system("cls");
               cout<<"|--------------------------------|\n";
               cout<<"|       <<我的10分钟课间>>       |\n"; 
               cout<<"|  大家好!我是莉莉,今天我将带大|\n";
               cout<<"|家看看我的课间,课间有两个地方玩|\n";
               cout<<"|第一个地方是操场,第二个地方是小|\n";
               cout<<"|树林。                          |\n";
               cout<<"|  大家在操场踢球,跑步,跳绳踢球|\n";
               cout<<"|的人最多,只见一个男孩将球踢向了|\n";
               cout<<"|门框,可惜球未能进去,被手门员的|\n";
               cout<<"|那冷酷的手挡住了,但是他并没有放|\n";
               cout<<"|弃,他抓准时机射出了一个完美的弧|\n";
               cout<<"|线球,成功进门了!!!          |\n";
               cout<<"|  小树林之繁茂盛,他们在里面玩鬼|\n";
               cout<<"|抓人,捉迷藏,还有人模仿特种兵。|\n";
               cout<<"|  这就是我的课间,再见了!      |\n";
               cout<<"|                                |\n";
               cout<<"|--------------------------------|\n";
               Sleep(20000);
               system("cls");
               cout<<"1.介绍课间的人是?";
               cout<<"1.丽丽 2.莉莉 3.李春辉";
               cin>>z1;
               if(z1==1||z1==3){
                    cout<<"你错了!再接再厉"; 
               }else{
                    cout<<"恭喜你!答对了"; 
               }
               Sleep(500);
               system("cls");
               cout<<"2.课间有哪些地方可以玩?";
               cout<<"1.花园and草坪 2.办公室and小树林 3.操场and小树林";
               cin>>z2;
               if(z2==1||z2==2){
                    cout<<"你错了!再接再厉"; 
               }
               else if(z1==2&&z2==3){
                    cout<<"答对两次了!加油"; 
               }
               else{
                    cout<<"答对了,你真棒!"; 
               }
               Sleep(500);
               system("cls");
               cout<<"3.作者主要描写了操场哪个运动?";
               cout<<"1.踢球 2.跳绳 3.跑步";
               cin>>z3;
               if(z3==2||z3==3){
                    cout<<"你打错了,再接再厉!"; 
               } 
               else if(z3==1&&z2==3&&z1==2){
                    cout<<"全答对了!你真厉害!!!"; 
               }
               else{
                    cout<<"答对了,真棒"; 
               }
               Sleep(1000);
               system("cls");
               cout<<"您考了";
                    if(z3==1&&z2!=3&&z1!=2){
                        cout<<hhyx-34-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2==3&&z1!=2){
                        cout<<hhyx-33-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2!=3&&z1==2){
                        cout<<hhyx-33-34;
                        cout<<"分";
                    }
                    else if(z3==1&&z2==3&&z1!=2){
                        cout<<hhyx-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2==3&&z1==2){
                        cout<<hhyx-33;
                        cout<<"分";
                    }
                    else if(z3==1&&z2!=3&&z1==2){
                        cout<<hhyx-34;
                        cout<<"分";
                    }
                    else if(z3==1&&z2==3&&z1!=2){
                        cout<<hhyx;
                    }
                    else if(z3!=1&&z2!=3&&z1!=2){
                        cout<<hhyx-34-33-33;
                        cout<<"分"; 
                    }
                    else if(z3==1&&z2==3&&z1==2){
                        cout<<hhyx;
                        cout<<"分";
                    }
        }

        if(b==2){
            cout<<"1.10秒   2.30秒    3.60秒 4.10分钟  5.30分钟  6.1小时";
            cout<<"\n选择秒数:";
            int d;
            cin>>d;
            if(d==1){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 10");
                cout<<"你的电脑将在10秒后关机";             
            }
            if(d==2){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 30");
                cout<<"你的电脑将在30秒后关机"; 
            }
            if(d==3){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 60");
                cout<<"你的电脑将在60秒后关机"; 
            }
            if(d==4) {
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 600");
                cout<<"你的电脑将在10分钟后关机"; 
            }
            if(d==5){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 1800");
                cout<<"你的电脑将在30分钟后关机"; 
            }
            if(d==6){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 3600");
                cout<<"你的电脑将在1小时后关机"; 
            }
        }
        if(b==3){
            return 0;   
        }
        if(b==4){
            system("cls");
            cout<<"   1.黑人抬棺      2.天空之城";
            int fafa;
            cin>>fafa;
            if(fafa==1){
                system("cls");
                const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
                const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
                const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
                const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
                const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
                const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
                const int T = 300; //一拍的长度
                const int Stop = 800; //一拍休止符的长度
                cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
                cout<<"                            请收听:黑人抬棺!";
                for(int i=1;i>=0;i++){
                Beep(D,T*2);
                Beep(D,T);
                Beep(A,T);
                Beep(G,T*2);
                Beep(F,T*2);
                Beep(E,T*2);
                Beep(E,T);
                Beep(E,T);
                Beep(G,T*2);
                Beep(F,T);
                Beep(E,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep( F, T );
                Beep( E, T );
                Beep( F, T );
                Beep( E, T );
                Beep(F,T);
                Beep( D, T );
                Beep( D, T );
                Beep( F, T );
                Beep( F, T );
                Beep( E, T );
                Beep( E, T );
                Beep( G, T );
                Beep( G, T );
                Beep( G, T );
                Beep( G, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T);
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T);
                Beep( A, T);
                Beep( F, T );
                Beep( E, T );
                Beep( D, T);
                Beep( C, T);
                }
            } 
                if(fafa==2){    
                    int pai=400,ban=200;
                    int ting=128;
                    system("cls");
                    Sleep(1000);
                    cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
                cout<<"                            请收听:天空之城!";
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,3*pai);
                    Sleep(ting);
                    Beep(mi,ban);
                    Beep(mi,ban);

                    Beep(la,ban+pai);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(ting/2);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai+ban);
                    Beep(mi,ban);
                    Sleep(ting);
                    Beep(fa,ban);
                    Beep(do1,ban+pai);
                    Sleep(ting);

                    Beep(mi,2*pai);
                    Sleep(ting);
                    Sleep(ban);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);

                    Beep(si,ban+pai);
                    Beep(sfa,ban);
                    Sleep(ting);
                    Beep(sfa,pai);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(20);
                    Beep(mi,ban);
                    Sleep(ting);

                    Beep(la,pai+ban);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,3*pai);
                    Sleep(ting+ban);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(20);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(do1,pai);
                    Sleep(ting+pai);

                    Beep(do1,pai);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(la,ban);
                    Sleep(20);
                    Beep(la,ban);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(sso,pai);
                    Sleep(ting);

                    Beep(sso,2*pai);
                    Sleep(ting+pai);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(ting);

                    Beep(mi1,pai+ban);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);
                    Beep(fa1,pai);
                    Sleep(ting);

                    Beep(re1,2*pai);
                    Sleep(pai+ting);
                    Beep(so,ban);
                    Sleep(20);
                    Beep(so,ban);
                    Sleep(ting);

                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(mi1,2*pai);
                    Sleep(ting+2*pai);

                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(so,ban);
                    Sleep(20);
                    Beep(so,pai);
                    Sleep(pai+ting);

                    Beep(fa1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);
                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(mi1,4*pai);

                    Beep(mi1,pai*2);
                    Sleep(pai+ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(la1,2*pai);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);

                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting+ban);
                    Beep(do1,ban);
                    Sleep(ting);

                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);

                    Beep(mi1,2*pai);
                    Sleep(ting+pai);
                    Beep(mi,pai);
                    Sleep(ting);

                    Beep(la1,2*pai);
                    Sleep(ting);
                    Beep(so1,2*pai);
                    Sleep(ting);

                    Beep(mi1,ban);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(do1,2*pai);
                    Sleep(ting+ban);
                    Beep(do1,ban);
                    Sleep(ting);

                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(la,2*pai);
                    Sleep(ting);
                    Beep(la,ban);
                    Beep(si,ban);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,3*pai);
                    Sleep(ting);
                    Beep(mi,ban);
                    Beep(mi,ban);

                    Beep(la,ban+pai);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(ting/2);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai+ban);
                    Beep(mi,ban);
                    Sleep(ting);
                    Beep(fa,ban);
                    Beep(do1,ban+pai);
                    Sleep(ting);

                    Beep(mi,2*pai);
                    Sleep(ting);
                    Sleep(ban);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);

                    Beep(si,ban+pai);
                    Beep(sfa,ban);
                    Sleep(ting);
                    Beep(sfa,pai);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(20);
                    Beep(mi,ban);
                    Sleep(ting);

                    Beep(la,pai+ban);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,3*pai);
                    Sleep(ting+ban);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(20);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(do1,pai);
                    Sleep(ting+pai);

                    Beep(la,4*pai);

                    Sleep(1000);

                    }
                }
        if(b==5){ 
            system("cls");
            cout<<"这里有更多功能:1.计时器   2.计算机" ; 
            int sb;
            cin>>sb;
            if(sb==1){
                system("color f0");
                int h,m,s;
                cin>>h>>m>>s;
                while(1){
                    system("cls");
                    if(h<0){
                        break;
                    }
                    cout<<h<<":"<<m<<":"<<s;
                    s--;
                    if(s<=0){
                        if(m<=0){
                            m+=60;
                            h--;
                        }
                        s+=60;
                        m--;
                    }

                    Sleep(1000);
                }
                cout<<"\n\n\n\n\n\t\t\t时间到";
                    system("color 12");
                    system("color 23");
                    system("color 34");
                    system("color 45");
                    system("color 56");
                    system("color 67");
                    system("color 78");
                    system("color 81");
                    system("color 12");
                    system("color 23");
                    system("color 34");
                    system("color 45");
                    system("color 56");
                    const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
                    const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
                    const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
                    const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
                    const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
                    const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
                    const int T = 200; //一拍的长度
                    const int Stop = 0; //一拍休止符的长度
                    int i;
                     while(i!=10){
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(A,T);
                     Beep(G,T*2);
                     Beep(F,T*2);
                     Beep(E,T*2);
                     Beep(E,T);
                     Beep(E,T);
                     Beep(G,T*2);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep( F, T );
                     Beep( E, T );
                     Beep( F, T );
                     Beep( E, T );
                     Beep(F,T);
                     Beep( D, T );
                     Beep( D, T );
                     Beep( F, T );
                     Beep( F, T );
                     Beep( E, T );
                     Beep( E, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T);
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T);
                     Beep( A, T);
                     Beep( F, T );
                     Beep( E, T );
                     Beep( D, T);
                     Beep( C, T);
                     i++;
                     }
            }
            if(sb==2) {
                system("cls");  
                Sleep(1000);
                cout<<"1.加法   2.减法    3.乘法    4.除法    5.次方";
                int c1,c2,c3;
                cin>>c1;
                system("cls");
                cin>>c2>>c3;    
                if(c1==1) {
                    cout<<c2<<"+"<<c3<<"="<<c2+c3;
                }
                if(c1==2) {
                    cout<<c2<<"-"<<c3<<"="<<c2-c3;
                }
                if(c1==3) {
                    cout<<c2<<"*"<<c3<<"="<<c2*c3;
                }
                if(c1==4) {
                    if(c2!=0&&c3!=0){
                        cout<<c2<<"/"<<c3<<"="<<c2/c3;
                    }
                    else{
                        cout<<"错误!"; 
                    }
                }
                if(c1==5) {
                    cout<<pow(c2,c3);
                }
            }   
        }   
    return 0;       
}
    

请各位大佬指教!!!


0
已采纳
包涵宇
包涵宇
中级天翼
中级天翼

加上color更好

再加上左右选择

0
潘艺博
潘艺博
初级天翼
初级天翼

你和宫成谁抄谁的<<我的10分钟课间>>,自己报一下吧

0
0
0
熊智晖
熊智晖
高级天翼
高级天翼
#include<iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<winioctl.h>
#include<assert.h>
#include<ctype.h>
#include<cstdlib>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<cstdio>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<assert.h>
#define CLS SetPos(1000,1000) 
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<cmath>
#include<algorithm>
#include<string>
#include<conio.h>
#include<windows.h>
#include<iomanip>
#include<bits/stdc++.h>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<conio.h>
#include <winable.h> 
#pragma GCC optimize(2)
#define qdo 262 
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#include<vector> 
#include<cstring>
#include<string>
#include<cstdlib>
#include<cmath>
#include<ctime>
#include<windows.h>
#include<fstream>
#include<iomanip>
#include<conio.h>
#define qdo 262 
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#pragma GCC diagnostic error "-std=c++11"
#pragma GCC target("avx")
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(3)
#include<bits/stdc++.h>
#include<windows.h>
#include<cstdio>
#include<iostream>
#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
using namespace std;
int main(){ 
    int q,c;
    cout<<"\n\n\n\n\n\n\t\t\t\t\t\t欢迎来到x服务器1.0版"; 
    Sleep(2000); 
    {
        for(int kai;kai<=101;kai++){
            if(q>=100){

                system("cls");
                cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t 加载完成!";
                Sleep(1300);
                break;
            }
            cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t  "<<q<<"%";
            Sleep(30);
            q+=1;
            system("cls");

        }
    }
    system("cls");
    Sleep(1000);
    cout<<"输入你的名字";
    string a;
    cin>>a;
    Sleep(500);
    cout<<"\n\n你好,"<<a<<"。加油!"; 
    Sleep(2000);
    system("cls");
    cout<<"\n\n\n\n\n"<<"\t\t\t\t抵制不良游戏";
    cout<<" "<<"\t\t\t拒绝盗版游戏";
    Sleep(500);
    cout<<"\n"<<"\t\t\t\t注意自我保护"; 
    cout<<" "<<"\t\t\t谨防受骗上当"; 
    Sleep(500);
    cout<<"\n"<<"\t\t\t\t适度游戏益脑"; 
    cout<<" "<<"\t\t\t沉迷游戏伤身";
    Sleep(500); 
    cout<<"\n"<<"\t\t\t\t合理安排时间"; 
    cout<<" "<<"\t\t\t享受健康生活"; 
    Sleep(3000);
    system("cls");
    cout<<"作者:";
    Sleep(300);
    cout<<"熊";
    Sleep(300);
    cout<<"智";
    Sleep(300);
    cout<<"晖";
    Sleep(900);
    cout<<"\n出版:金光工作室\n宫 成LV.6(室 长)\n张 恩 昊LV.4(推荐组)\n熊 智 晖LV.5(开发组)\n张 百 川LV.6(开发组)\n张 以 沫LV.7(修改组)\n包 涵 宇LV.9(副室长)\n谭 迪 元LV.8(修改组)\n李 子 杰LV.7(开发组)\n李 明 昕LV.6(开发组)\n王 文 博LV.6(修改组)" ; 
    Sleep(3000);
    system("cls");
    cout<<"\n\n\n\n\n\t\t\t\t   ____________________________________________________";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       1.小游戏  \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       2.关机代码\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       3.退出游戏\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       4.音乐    \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t       5.其他    \t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |\t\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  |版本:2.0"<<"\t\t\t\t\t       |";
        Sleep(60);
        cout<<"\n\t\t\t\t  -----------------------------------------------------\n\t\t\t\t\t\t\t 请输入:"; 
        int b;
        cin>>b;
        if(b==1){
                int z1,z2,z3,hhyx=100;
              system("cls");
               cout<<"|--------------------------------|\n";
               cout<<"|       <<我的10分钟课间>>       |\n"; 
               cout<<"|  大家好!我是莉莉,今天我将带大|\n";
               cout<<"|家看看我的课间,课间有两个地方玩|\n";
               cout<<"|第一个地方是操场,第二个地方是小|\n";
               cout<<"|树林。                          |\n";
               cout<<"|  大家在操场踢球,跑步,跳绳踢球|\n";
               cout<<"|的人最多,只见一个男孩将球踢向了|\n";
               cout<<"|门框,可惜球未能进去,被手门员的|\n";
               cout<<"|那冷酷的手挡住了,但是他并没有放|\n";
               cout<<"|弃,他抓准时机射出了一个完美的弧|\n";
               cout<<"|线球,成功进门了!!!          |\n";
               cout<<"|  小树林之繁茂盛,他们在里面玩鬼|\n";
               cout<<"|抓人,捉迷藏,还有人模仿特种兵。|\n";
               cout<<"|  这就是我的课间,再见了!      |\n";
               cout<<"|                                |\n";
               cout<<"|--------------------------------|\n";
               Sleep(20000);
               system("cls");
               cout<<"1.介绍课间的人是?";
               cout<<"1.丽丽 2.莉莉 3.李春辉";
               cin>>z1;
               if(z1==1||z1==3){
                    cout<<"你错了!再接再厉"; 
               }else{
                    cout<<"恭喜你!答对了"; 
               }
               Sleep(500);
               system("cls");
               cout<<"2.课间有哪些地方可以玩?";
               cout<<"1.花园and草坪 2.办公室and小树林 3.操场and小树林";
               cin>>z2;
               if(z2==1||z2==2){
                    cout<<"你错了!再接再厉"; 
               }
               else if(z1==2&&z2==3){
                    cout<<"答对两次了!加油"; 
               }
               else{
                    cout<<"答对了,你真棒!"; 
               }
               Sleep(500);
               system("cls");
               cout<<"3.作者主要描写了操场哪个运动?";
               cout<<"1.踢球 2.跳绳 3.跑步";
               cin>>z3;
               if(z3==2||z3==3){
                    cout<<"你打错了,再接再厉!"; 
               } 
               else if(z3==1&&z2==3&&z1==2){
                    cout<<"全答对了!你真厉害!!!"; 
               }
               else{
                    cout<<"答对了,真棒"; 
               }
               Sleep(1000);
               system("cls");
               cout<<"您考了";
                    if(z3==1&&z2!=3&&z1!=2){
                        cout<<hhyx-34-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2==3&&z1!=2){
                        cout<<hhyx-33-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2!=3&&z1==2){
                        cout<<hhyx-33-34;
                        cout<<"分";
                    }
                    else if(z3==1&&z2==3&&z1!=2){
                        cout<<hhyx-33;
                        cout<<"分";
                    }
                    else if(z3!=1&&z2==3&&z1==2){
                        cout<<hhyx-33;
                        cout<<"分";
                    }
                    else if(z3==1&&z2!=3&&z1==2){
                        cout<<hhyx-34;
                        cout<<"分";
                    }
                    else if(z3==1&&z2==3&&z1!=2){
                        cout<<hhyx;
                    }
                    else if(z3!=1&&z2!=3&&z1!=2){
                        cout<<hhyx-34-33-33;
                        cout<<"分"; 
                    }
                    else if(z3==1&&z2==3&&z1==2){
                        cout<<hhyx;
                        cout<<"分";
                    }
        }

        if(b==2){
            cout<<"1.10秒   2.30秒    3.60秒 4.10分钟  5.30分钟  6.1小时";
            cout<<"\n选择秒数:";
            int d;
            cin>>d;
            if(d==1){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 10");
                cout<<"你的电脑将在10秒后关机";             
            }
            if(d==2){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 30");
                cout<<"你的电脑将在30秒后关机"; 
            }
            if(d==3){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 60");
                cout<<"你的电脑将在60秒后关机"; 
            }
            if(d==4) {
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 600");
                cout<<"你的电脑将在10分钟后关机"; 
            }
            if(d==5){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 1800");
                cout<<"你的电脑将在30分钟后关机"; 
            }
            if(d==6){
                cout<<"此程序安全无危害\n\n"; 
                system("shutdown -s -f -t 3600");
                cout<<"你的电脑将在1小时后关机"; 
            }
        }
        if(b==3){
            return 0;   
        }
        if(b==4){
            system("cls");
            cout<<"   1.黑人抬棺      2.天空之城";
            int fafa;
            cin>>fafa;
            if(fafa==1){
                system("cls");
                const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
                const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
                const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
                const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
                const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
                const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
                const int T = 300; //一拍的长度
                const int Stop = 800; //一拍休止符的长度
                cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
                cout<<"                            请收听:黑人抬棺!";
                for(int i=1;i>=0;i++){
                Beep(D,T*2);
                Beep(D,T);
                Beep(A,T);
                Beep(G,T*2);
                Beep(F,T*2);
                Beep(E,T*2);
                Beep(E,T);
                Beep(E,T);
                Beep(G,T*2);
                Beep(F,T);
                Beep(E,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(E,T);
                Beep(F,T);
                Beep(D,T*2);
                Beep(D,T);
                Beep( F, T );
                Beep( E, T );
                Beep( F, T );
                Beep( E, T );
                Beep(F,T);
                Beep( D, T );
                Beep( D, T );
                Beep( F, T );
                Beep( F, T );
                Beep( E, T );
                Beep( E, T );
                Beep( G, T );
                Beep( G, T );
                Beep( G, T );
                Beep( G, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T);
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T );
                Beep( A, T);
                Beep( A, T);
                Beep( F, T );
                Beep( E, T );
                Beep( D, T);
                Beep( C, T);
                }
            } 
                if(fafa==2){    
                    int pai=400,ban=200;
                    int ting=128;
                    system("cls");
                    Sleep(1000);
                    cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
                cout<<"                            请收听:天空之城!";
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,3*pai);
                    Sleep(ting);
                    Beep(mi,ban);
                    Beep(mi,ban);

                    Beep(la,ban+pai);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(ting/2);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai+ban);
                    Beep(mi,ban);
                    Sleep(ting);
                    Beep(fa,ban);
                    Beep(do1,ban+pai);
                    Sleep(ting);

                    Beep(mi,2*pai);
                    Sleep(ting);
                    Sleep(ban);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);

                    Beep(si,ban+pai);
                    Beep(sfa,ban);
                    Sleep(ting);
                    Beep(sfa,pai);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(20);
                    Beep(mi,ban);
                    Sleep(ting);

                    Beep(la,pai+ban);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,3*pai);
                    Sleep(ting+ban);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(20);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(do1,pai);
                    Sleep(ting+pai);

                    Beep(do1,pai);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(la,ban);
                    Sleep(20);
                    Beep(la,ban);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(sso,pai);
                    Sleep(ting);

                    Beep(sso,2*pai);
                    Sleep(ting+pai);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(ting);

                    Beep(mi1,pai+ban);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);
                    Beep(fa1,pai);
                    Sleep(ting);

                    Beep(re1,2*pai);
                    Sleep(pai+ting);
                    Beep(so,ban);
                    Sleep(20);
                    Beep(so,ban);
                    Sleep(ting);

                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(mi1,2*pai);
                    Sleep(ting+2*pai);

                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(so,ban);
                    Sleep(20);
                    Beep(so,pai);
                    Sleep(pai+ting);

                    Beep(fa1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);
                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(mi1,4*pai);

                    Beep(mi1,pai*2);
                    Sleep(pai+ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(la1,2*pai);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);

                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting+ban);
                    Beep(do1,ban);
                    Sleep(ting);

                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(so1,pai);
                    Sleep(ting);

                    Beep(mi1,2*pai);
                    Sleep(ting+pai);
                    Beep(mi,pai);
                    Sleep(ting);

                    Beep(la1,2*pai);
                    Sleep(ting);
                    Beep(so1,2*pai);
                    Sleep(ting);

                    Beep(mi1,ban);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(do1,2*pai);
                    Sleep(ting+ban);
                    Beep(do1,ban);
                    Sleep(ting);

                    Beep(re1,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(ting);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(la,2*pai);
                    Sleep(ting);
                    Beep(la,ban);
                    Beep(si,ban);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,3*pai);
                    Sleep(ting);
                    Beep(mi,ban);
                    Beep(mi,ban);

                    Beep(la,ban+pai);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(ting/2);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai+ban);
                    Beep(mi,ban);
                    Sleep(ting);
                    Beep(fa,ban);
                    Beep(do1,ban+pai);
                    Sleep(ting);

                    Beep(mi,2*pai);
                    Sleep(ting);
                    Sleep(ban);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);
                    Beep(do1,ban);
                    Sleep(ting/2);

                    Beep(si,ban+pai);
                    Beep(sfa,ban);
                    Sleep(ting);
                    Beep(sfa,pai);
                    Beep(si,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(la,ban);
                    Beep(si,ban);
                    Sleep(ting);

                    Beep(do1,pai+ban);
                    Beep(si,ban);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);
                    Beep(mi1,pai);
                    Sleep(ting);

                    Beep(si,2*pai);
                    Sleep(ting);
                    Sleep(pai);
                    Beep(mi,ban);
                    Sleep(20);
                    Beep(mi,ban);
                    Sleep(ting);

                    Beep(la,pai+ban);
                    Beep(so,ban);
                    Sleep(ting);
                    Beep(la,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(so,3*pai);
                    Sleep(ting+ban);
                    Beep(mi,ban);
                    Sleep(ting/2);

                    Beep(fa,pai);
                    Sleep(ting);
                    Beep(do1,ban);
                    Beep(si,ban);
                    Sleep(20);
                    Beep(si,pai);
                    Sleep(ting);
                    Beep(do1,pai);
                    Sleep(ting);

                    Beep(re1,ban);
                    Sleep(20);
                    Beep(re1,ban);
                    Sleep(20);
                    Beep(mi1,ban);
                    Sleep(ting/2);
                    Beep(do1,pai);
                    Sleep(ting+pai);

                    Beep(la,4*pai);

                    Sleep(1000);

                    }
                }
        if(b==5){ 
            system("cls");
            cout<<"这里有更多功能:1.计时器   2.计算机" ; 
            int sb;
            cin>>sb;
            if(sb==1){
                system("color f0");
                int h,m,s;
                cin>>h>>m>>s;
                while(1){
                    system("cls");
                    if(h<0){
                        break;
                    }
                    cout<<h<<":"<<m<<":"<<s;
                    s--;
                    if(s<=0){
                        if(m<=0){
                            m+=60;
                            h--;
                        }
                        s+=60;
                        m--;
                    }

                    Sleep(1000);
                }
                cout<<"\n\n\n\n\n\t\t\t时间到";
                    system("color 12");
                    system("color 23");
                    system("color 34");
                    system("color 45");
                    system("color 56");
                    system("color 67");
                    system("color 78");
                    system("color 81");
                    system("color 12");
                    system("color 23");
                    system("color 34");
                    system("color 45");
                    system("color 56");
                    const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
                    const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
                    const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
                    const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
                    const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
                    const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
                    const int T = 200; //一拍的长度
                    const int Stop = 0; //一拍休止符的长度
                    int i;
                     while(i!=10){
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(A,T);
                     Beep(G,T*2);
                     Beep(F,T*2);
                     Beep(E,T*2);
                     Beep(E,T);
                     Beep(E,T);
                     Beep(G,T*2);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(E,T);
                     Beep(F,T);
                     Beep(D,T*2);
                     Beep(D,T);
                     Beep( F, T );
                     Beep( E, T );
                     Beep( F, T );
                     Beep( E, T );
                     Beep(F,T);
                     Beep( D, T );
                     Beep( D, T );
                     Beep( F, T );
                     Beep( F, T );
                     Beep( E, T );
                     Beep( E, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( G, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T);
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T );
                     Beep( A, T);
                     Beep( A, T);
                     Beep( F, T );
                     Beep( E, T );
                     Beep( D, T);
                     Beep( C, T);
                     i++;
                     }
            }
            if(sb==2) {
                system("cls");  
                Sleep(1000);
                cout<<"1.加法   2.减法    3.乘法    4.除法    5.次方";
                int c1,c2,c3;
                cin>>c1;
                system("cls");
                cin>>c2>>c3;    
                if(c1==1) {
                    cout<<c2<<"+"<<c3<<"="<<c2+c3;
                }
                if(c1==2) {
                    cout<<c2<<"-"<<c3<<"="<<c2-c3;
                }
                if(c1==3) {
                    cout<<c2<<"*"<<c3<<"="<<c2*c3;
                }
                if(c1==4) {
                    if(c2!=0&&c3!=0){
                        cout<<c2<<"/"<<c3<<"="<<c2/c3;
                    }
                    else{
                        cout<<"错误!"; 
                    }
                }
                if(c1==5) {
                    cout<<pow(c2,c3);
                }
            }   
        }   
    return 0;       
}
    

新修改的

我要回答