#include<bits/stdc++.h>
#include<Windows.h>
#include<algorithm>
#include<cmath>
#include<ctime>
#include<iostream>
#include<ctype.h>
#include<cstring>
#include<string.h>
#include<iomanip>
#include<string.h>
using namespace std;
typedef long long ll;
const ll N = 1e3+100;
struct Person{
string name;
long long score;
};
bool cmp(Person a,Person b){
return a.score>b.score;
}
/int x;
x=MessageBox(GetForegroundWindow(),"【add】","【add】",1);
printf("%d\n",x);
/
bool Main_Function(){
Person a[N];
system("color a");
cout<<"请输入要添加的学生总数:"<<endl;//printf("%d","Please enter the total number of students to be added:");
long long n;
cin>>n;
switch (n){
case 1:
cout<<"这个数据对整个代码不成立!";//else: printf("%d","This data does not hold for the entire code!");
Sleep(31000);
return 0;
}
Sleep(11000);
system("cls");
cout<<"请输入要添加的学生名字:"<<endl;
for(int i=1;i<=n;i++){
cin>>a[i].name;
}
Sleep(11000);
system("cls");
cout<<"请输入每个学生的分数:"<<endl;
for(int i=1;i<=n;i++){
cin>>a[i].score;
}
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"是否保存?","加分",1);
Sleep(21000);
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"是否比较分数?","加分",1);//弹出对话框
sort(a+1,a+n+1,cmp);
cout<<a[1].name<<"最多"<<endl;
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"是否保存?","加分",1);
system("cls");
cout<<"历史最高分:"<<a[1].name<<" ";
cout<<"历史第二高分:"<<a[2].name;
Sleep(31000);
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"你的电脑可能被入侵了,Windows正在尝试修复","警告",1);
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"Windows修复失败!","警告",1);
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"本地磁盘(C)所有文件丢失!","警告",1);
MessageBeep(MB_ICONINFORMATION);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"本地磁盘(D)所有文件丢失!","警告",1);
Beep(1000, 50);
Sleep(110);
Beep(1000, 50);Beep(1000, 50);
Sleep(110);
Beep(1000, 50);
MessageBox(GetForegroundWindow(),"Windows无法关闭ConsolePauser.exe!","警告",1);
Sleep(21000);
for(int i=1;i<=100;i++){
system("start cmd");
}
Sleep(2*1000);
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
for(int i=1;i<=1000;i++){
SetCursorPos(rand()%x,rand()%y);
HWND hwnd = GetDesktopWindow();
HDC hdc = GetWindowDC(hwnd);
POINT point;
}
void full_screen() {
HWND hwnd = GetForegroundWindow();
int cx = GetSystemMetrics(SM_CXSCREEN);
int cy = GetSystemMetrics(SM_CYSCREEN);
}
void HideTheCursor() {
CONSOLE_CURSOR_INFO cciCursor;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
}
int main(void){
cout<<"欢迎来到加分虚拟软件!"<<endl;
Sleep(31000);
Main_Function();
_sleep(61000);
system("mode 96,28");
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin, mode);
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 properly installed.\n
If this is a new installation, ask your hardware or software manufacturer\n
for any windows updates you might need.\n\n
If problems continue. disable or remove any newly installed hardware\n
or software. Disable BIOS memory option such as caching or shadowing.\n
If you need to nsu Safe Mode to remove or disable components, restart\n
your computer, press F8 to select Advanced Startup Options, and then\n
select Safe Mode.\n\n
Technical information:\n
"""STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n
"""SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c"<<endl;
}