1..蓝屏警告小心点
#include <windows.h>
#include <iostream>
using namespace std;
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 HideTheCursor()
{
CONSOLE_CURSOR_INFO cciCursor;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
if (GetConsoleCursorInfo(hStdOut, &cciCursor))
{
cciCursor.bVisible = FALSE;
SetConsoleCursorInfo(hStdOut, &cciCursor);
}
}
int main()
{
system("mode 96,28");
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin, mode);
HideTheCursor();
system("color 1f");
RECT rect;
HWND hwnd = GetForegroundWindow();
GetWindowRect(hwnd, &rect);
MoveWindow(hwnd, -30, -7, 8600, 1080, TRUE);
full_screen();
cout << "A problem has been detected and windows has been shut\
down to prevent damage\n\
to your computer.\n\n\
DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\
If this is the first time you've seen this Stop error screen, \n\
restart your computer.If this screen appears again, follow \n\
these steps:\n\n\
Check to make sure any new hardware or software is prwe56ewrrwqqwerqoperly installed.\n\
If this is a new ieqwerqwerwnstarwerwqtewqw3rewrllation, ask your hardware or software manufacturer\n\
for any windows updates you might need.\n\n\
If problems continue. disable or remove any newly installetretwd hardware\n\
or software.qqwrqerwfsdf Disable BIOS ewerwrwerrqememory wee65ewqoption such as caching or shadowing.\n\
If you need to nsu Safe Mode to refdgmove or disable componentsrryuytr, restart\n\
your computer, press Fafsdfsad8 to select Advanced Startuprywrt Options, and then\n\
select Safe Mode.\n\n\
Technical information:\n\
\"\"\"STOP:0x000ff 00050(0xFD3094c2,0x000fyhvgvkk jnfds 00001,0xFBFE7617,0x0000}\n\n\
\"\"\"SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c\n"
<< endl;
while (1)
{
HideTheCursor();
Sleep(1000);
}
return 0;
}
2.鼠标乱动
#include<windows.h>
#include<stdio.h>
#include<time.h>
#include<conio.h>
int main()
{
system("title ");
int x,y;
printf("按任意键暂停!");
while(!_kbhit())
{
x=rand()%332+300;
y=rand()%228+300;
SetCursorPos(x,y);
}
return 0 ;
}
(无法截屏)
3.14588
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main() {
system("color f0");
int jh;
int mm;
int mmm;
int bf=0;
jh=3;
while(MessageBox(NULL,"你的电脑已经成功被朗哥病毒侵占,是否服从朗哥接下来的要求?","hahaha",MB_YESNO)==7) {
MessageBox(NULL,"你没有按'是',再来一遍","不按'是'你试试(偷偷告诉你,密码是14588)",MB_OK);
}
MessageBox(NULL,"输入密码以进行下一步,有3次机会","",MB_OK);
cout<<"输入密码:";
cin>>mmm;
while(mmm!=14588) {
if(jh==1) {
MessageBox(NULL,"你没有机会了,正在安装病毒驱动","hahaha",MB_OK);
system("color 2d");
for(int i=1; i<=100; i++) {
bf=bf+1;
cout<<bf<<"%"<<"已安装";
Sleep(100);
system("cls");
}
cout<<"安装完毕";
Sleep(500);
cout<<" C盘所有文件名已改为'朗哥'";
system("color f0");
Sleep(2000);
return 0;
}
jh=jh-1;
system("color f4");
MessageBox(NULL,"密码错误!","",MB_OK);
system("color f4");
cout<<"还有"<<jh<<"次机会"<<endl;
if(jh==1) {
cout<<"小提示:开头的选项里有答案哦"<<endl;
}
Sleep(2000);
system("color f0");
system("cls");
cout<<"输入密码:";
cin>>mmm;
cout<<endl;
}
system("color f2");
cout<<"密码正确!"<<endl;
MessageBox(NULL,"下一步,灵魂拷问","hohoho",MB_OK);
system("cls");
while(MessageBox(NULL,"朗哥帅吗","",MB_YESNO)==7) {
MessageBox(NULL,"选错了,重选","WRONG",MB_OK);
}
MessageBox(NULL,"虽然你选对了,但我还是要给你安装病毒驱动","hahaha",MB_OK);
system("color 2d");
for(int i=1; i<=100; i++) {
bf=bf+1;
cout<<bf<<"%"<<"已安装";
Sleep(100);
system("cls");
}
cout<<"安装完毕";
Sleep(500);
cout<<" C盘所有文件名已改为'朗哥'";
system("color f0");
Sleep(2000);
return 0;
}
(无法截屏)