问题标题: 酷町堂:答题游戏3.0版本

2
1
已解决
熊智晖
熊智晖
高级天翼
高级天翼
#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<iomanip>
#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<string>
#include<cstdlib>
#include<ctime>
#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)
#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
#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;
void clear(){    
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    COORD coordScreen = { 0, 0 };   
    SetConsoleCursorPosition( hConsole, coordScreen );
}
void full_screen()
{
    HWND hwnd = GetForegroundWindow();
    int cx = GetSystemMetrics(SM_CXSCREEN);            /* 屏幕宽度 像素 */
    int cy = GetSystemMetrics(SM_CYSCREEN);            /* 屏幕高度 像素 */

    LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE);   /* 获取窗口信息 */
    /* 设置窗口信息 最大化 取消标题栏及边框 */
    SetWindowLong(hwnd,GWL_STYLE,(l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME & ~WS_BORDER);

    SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
}
void console()
{
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);  
    CONSOLE_SCREEN_BUFFER_INFO bInfo; 
    GetConsoleScreenBufferInfo(hOut, &bInfo );  
    SetConsoleTitle("答题游戏3.0"); // 设置窗口的标题
    COORD size = {120, 30};//设置窗口大小
    SetConsoleScreenBufferSize(hOut,size);  
    SMALL_RECT rc = {0,0, 110, 30};
    SetConsoleWindowInfo(hOut,true ,&rc);
}
void retr(){//退出程序 
    HWND hWnd=GetForegroundWindow();
    ShowWindow(hWnd,SW_HIDE);
    exit(0);
}
int main(){
    int c,cnt=0;
    double q=0

    ;
    console();
    cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t欢迎来到,答题游戏3.0版本。";
    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");
    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");
    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 70");
    Sleep(1400); 
    system("cls");
    for(int kai=1;kai<=100;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(2000);
            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(1);
        q+=1;
        system("cls");

    }
    clear();
    Sleep(1000);
    cout<<"输入你的名字:";
    string name;
    cin>>name;
    Sleep(500);
    cout<<"\n\n你好,"<<name<<"。加油!"; 
    Sleep(2000);
    system("cls");
    cout<<"\n\n\n\n\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出版:金光工作室";
    Sleep(200);
    cout<<"\n 宫 成 LV.6(室 长)";
    Sleep(200);
    cout<<"\n张 恩 昊LV.4(推荐组)";
    Sleep(200);
    cout<<"\n熊 智 晖LV.7(开发组)";
    Sleep(200);
    cout<<"\n张 百 川LV.6(开发组)";
    Sleep(200);
    cout<<"\n张 以 沫LV.7(修改组)";
    Sleep(200);
    cout<<"\n包 涵 宇LV.9(副室长)";
    Sleep(200);
    cout<<"\n谭 迪 元LV.8(修改组)";
    Sleep(200);
    cout<<"\n李 子 杰LV.7(开发组)";
    Sleep(200);
    cout<<"\n李 明 昕LV.6(开发组)";
    Sleep(200);
    cout<<"\n王 文 博LV.9(修改组)"; 
    Sleep(2500);
    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  |版本:4.0"<<"\t\t\t\t\t       |";
    Sleep(60);
    cout<<"\n\t\t\t\t  -----------------------------------------------------\n\t\t\t\t\t\t请输入:"; 
    int b;
    cin>>b;
    if(b==1){
        system("cls");
        Sleep(500);
        cout<<"准备好了吗?"; 
        Sleep(500);
        cout<<"\n\nLet'go!";
        Sleep(2000);
        system("cls");
        cout<<"1.2.0版   2.3.0版";
        int sd;
        cin>>sd;
        if(sd==1) {
            system("cls");
            cout<<"2/1";
            cout<<"\n1.美国的首都是哪个?";
            Sleep(100);
            cout<<"\n A.华盛顿  B.伦敦 C.北京     D.东京";
            char c;
            cin>>c;
            if(c=='a'||c=='A'){
                cnt+=10;
                cout<<"\ngood!";
                Sleep(2000);
            }
            else{
                cout<<"╥﹏╥      错了";  
                Sleep(2000);
            }
            system("cls");
            cout<<"2/2";
            cout<<"\n下列人物中,谁不是《三国演义》中的人?";
            Sleep(100);
            cout<<"\n A.曹操   B.刘备   C.林冲    D.诸葛亮";
            char e;
            cin>>e; 
            if(e=='c'||e=='C'){
                cnt+=20;
                cout<<"\ngreat!";
                Sleep(2000);
            }
            else{
                cout<<"╥﹏╥      错了";
                Sleep(2000);
            }
            system("cls");
            cout<<"2/3";
            cout<<"\n请问下列诗名哪个是李白写的?";
            Sleep(100);
            cout<<"\n A《静夜思》 B 《回乡偶书》  C《春晓》 D《咏柳》";
            char f;
            cin>>f;
            if(f=='a'||f=='A'){
                cnt+=15;
                cout<<"\n答对了!";
                Sleep(2000);
            }
            else{
                cout<<"┭┮﹏┭┮      没有对";
                Sleep(2000);
            } 
            system("cls");
            cout<<"1/4";
            cout<<"\n太阳最近的恒星是啦个?";
            Sleep(200);
            cout<<"\n A.水星  B.比邻星 C.半人马座a  D.I don't now.";
            char h,i,g,k;
            cin>>h;
            if(h=='b'||h=='B'){
                cnt+=25;
                cout<<"又答对了!";
                Sleep(2000);
            }
            else if(h=='d'||h=='D'){
                cout<<"还有这种操作?    !!!∑(?Д?ノ)ノ";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            }
            else{
                cout<<"┭┮﹏┭┮      没有对";
                Sleep(2000);
            }
            system("cls");
            cout<<"1/5";
            cout<<"\n已知最小粒子是啥?"; 
            cout<<"\n A原子  B夸克  C.电子  D.what!!!∑(?Д?ノ)";
            cin>>i;
            if(i=='b'||i=='B'){
                cnt+=30;
                cout<<"正确";
                Sleep(3000);
            }
            else if(i=='d'||i=='D'){
                cout<<"这是神马操作?    Σ(っ°Д°;)っ";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            } 
            else{
                cout<<"(〒︿〒)      错了"; 
                Sleep(2000);
            }
            system("cls");
            cout<<"你的总分是:"<<cnt;
            Sleep(3000);
            system("cls");
            if(cnt>=80){
                cout<<"优秀";
            }
            else if(cnt>=60){
                cout<<"良好";
            }
            else if(cnt>=40){
                cout<<"及格";
            }
            else{
                cout<<"不及格!!!";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            }
            Sleep(2000); 
            system("cls");
            cout<<"恭喜你!" ;
            Sleep(2000);
            cout<<"\n\n闯过了第二季!!!";
            Sleep(2000);
            cout<<"\n\nvery good!!!!!";
        }
        if(sd==2){
            system("cls");
            cout<<"3/1";
            cout<<"\n1.法国的首都是哪个?";
            Sleep(100);
            cout<<"\n A.华盛顿  B.伦敦 C.北京     D.东京     E.巴黎";
            char c;
            cin>>c;
            if(c=='e'||c=='E'){
                cnt+=10;
                cout<<"\ngood!";
                Sleep(2000);
            }
            else{
                cout<<"╥﹏╥      错了";  
                Sleep(2000);
            }
            system("cls");
            cout<<"3/2";
            cout<<"\n下列人物中,谁不是《红楼梦》中的人?";
            Sleep(100);
            cout<<"\n A.曹操   B.林黛玉  C.贾宝玉 D.薛宝钗";
            char e;
            cin>>e; 
            if(e=='a'||e=='A'){
                cnt+10;
                cout<<"\ngreat!";
                Sleep(2000);
            }
            else{
                cout<<"╥﹏╥      错了";
                Sleep(2000);
            }
            system("cls");
            cout<<"3/3";
            cout<<"\n请问下列诗名哪个是孟浩然写的?";
            Sleep(100);
            cout<<"\n A《静夜思》 B 《回乡偶书》  C《春晓》 D《咏柳》";
            char f;
            cin>>f;
            if(f=='c'||f=='C'){
                cnt+=15;
                cout<<"\n答对了!";
                Sleep(2000);
            }
            else{
                cout<<"┭┮﹏┭┮      没有对";
                Sleep(2000);
            } 
            system("cls");
            cout<<"3/4";
            cout<<"\n太阳最近的行星是哪个?";
            Sleep(200);
            cout<<"\n A.水星  B.比邻星 C.半人马座a  D.I don't now.";
            char h,i,g,k;
            cin>>h;
            if(h=='a'||h=='A'){
                cnt+=20;
                cout<<"又答对了!";
                Sleep(2000);
            }
            else if(h=='d'||h=='D'){
                cout<<"还有这种操作?    !!!∑(?Д?ノ)ノ";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            }
            else{
                cout<<"┭┮﹏┭┮      没有对";
                Sleep(2000);
            }
            system("cls");
            cout<<"3/5";
            cout<<"\n2021年的奥运会是在东京举行的"; 
            cout<<"\n A.Yes.  B.No.    C.What!!!∑(?Д?ノ)ノ";
            cin>>i;
            if(i=='a'||i=='A'){
                cnt+=25;
                cout<<"正确";
                Sleep(3000);
            }
            else if(i=='c'||i=='C'){
                cout<<"这是神马操作?    Σ(っ°Д°;)っ";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            } 
            else{
                cout<<"(〒︿〒)      错了"; 
                Sleep(2000);
            }
            system("cls");
            cout<<"3/6";
            cout<<"\n中国的土地有960平方千米"; 
            cout<<"\n A.Yes.  B.No.    C.???ヽ(?Д?)?";
            cin>>i;
            if(i=='b'||i=='B'){
                cnt+=30;
                cout<<"正确";
                Sleep(3000);
            }
            else if(i=='d'||i=='D'){
                cout<<"这是神马操作?    Σ(っ°Д°;)っ";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            } 
            else{
                cout<<"(〒︿〒)      错了"; 
                Sleep(2000);
            }
            system("cls");
            cout<<"你的总分是:"<<cnt;
            Sleep(3000);
            system("cls");
            if(cnt>=80){
                cout<<"优秀";
            }
            else if(cnt>=60){
                cout<<"良好";
            }
            else if(cnt>=40){
                cout<<"及格";
            }
            else{
                cout<<"不及格!!!";
                Sleep(2000);
                cout<<"罚你电脑关机!!!";
                Sleep(3000);
                cout<<"哈哈哈哈!!!";
                system("shutdown -s -f -t 1");
            }
            Sleep(2000); 
            system("cls");
            cout<<"恭喜你!" ;
            Sleep(2000);
            cout<<"\n\n闯过了第二季!!!";
            Sleep(2000);
            cout<<"\n\nvery good!!!!!";
        } 
    }   
    else if(b==2){
        cout<<"1.10秒   2.30秒    3.60秒";
        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秒后关机"; 
        }
    }
    else if(b==3){
        retr();
    }
    else if(b==4){ 
        system("cls");
        cout<<"这里有更多功能:1.计时器   2.计算器   3.彩蛋" ; 
        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(500);
                }
                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.次方    6.阶乘";
            int c1,c2,c3,s6=1;
            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);
            }
            if(c1==6) {
                for(int i=c2;1<=c3;i++){
                    s6=s6*i;
                }
                cout<<s6;
            }
        }
        if(sb==3){
            long long m,n;
            cout<<"输入一个数:(大于1000)"; 
            cin>>n;
            for(int i=1;i<=n;i++){
                for(int j=1;j<=n-i;j++){
                    cout<<" ";
                }
                for(int j=1;j<=n-(n-i);j++){
                    cout<<'*'<<'+';
                }
                cout<<endl;
            }
            for(int i=n;i>=1;i--){
                for(int j=1;j<=n-i;j++){
                    cout<<" ";
                }
                for(int j=1;j<=n-(n-i);j++){
                    cout<<'*'<<'+';
                }
            }
            for(int i=1;i<=n;i++){
                for(int j=1;j<=n-i;j++){
                    cout<<" ";
                }
                for(int j=1;j<=n-(n-i);j++){
                    cout<<'*'<<'+';
                }
            }
            for(int i=n;i>=1;i--){
                for(int j=1;j<=n-i;j++){
                    cout<<" ";
                }
                for(int j=1;j<=n-(n-i);j++){
                    cout<<'*'<<'+';
                }
                cout<<endl;
            }

        }           
    } 
    return 0;
}
//{将评价写在下面
//游戏很有创意,可以继续深化
//作者辛苦了,感谢你的付出
//谢谢评价,白白!!!!!!!!!!!! 
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// return 0;
//}

 


0
已采纳
吕梓瑜
吕梓瑜
初级天翼
初级天翼

好厉害呀(我连游戏都不会编,你之前说的函数不会用)

2
1
0
0
0
王文博
王文博
缔造者之神
缔造者之神

建议增加JG()函数,在推箱子游戏里面有

0
0
王文博
王文博
缔造者之神
缔造者之神

又有了音乐,继续加油!!

0
我要回答