- 分享
小工具!(超好用)
- 2023-3-10 21:20:51 @
#include<bits/stdc++.h>
#include<time.h>//随机函数rand();用 srand(time(0));
#include<windows.h>//等待函数Sleep用
#define qwq 888;//用qwq代替888
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
void Slowsay(string a){
int l = a.size();
for (int i = 0; i < l; i++) {
if(a[i]=='\\'&&a[i+1]=='n'){
i++;
cout<<"\n";
}else cout << a[i];
Sleep(30);
}
}
void enter(){
cout<<"\n";
system("pause");
}
int main(){
system("cls");
Slowsay("欢迎使用编程小工具");
Slowsay("");
Sleep(500);
system("cls");
enter();
system("cls");
for (int i = 1; i <= 2; i++) {
cout << "\n加载中" ;
Sleep(150);
system("cls");
cout << "\n加载中." ;
Sleep(150);
system("cls");
cout << "\n加载中.." ;
Sleep(150);
system("cls");
cout << "\n加载中..." ;
Sleep(150);
system("cls");
}
for(;;system("cls")){
int x=0;
if(KEY_DOWN('Q')) system("taskkill /f /im ConsolePauser.exe /t");
if(KEY_DOWN('1')) x=1;
if(KEY_DOWN('2')) x=2;
if(KEY_DOWN('3')) x=3;
if(KEY_DOWN('4')) x=4;
if(KEY_DOWN('5')) x=5;
if(KEY_DOWN('P')){
Sleep(500);
for(;!KEY_DOWN('P');){cout<<"\n P 键打开小工具\n";};
Sleep(500);
}
cout<<"请选择:\n";
cout<<"1.打开一中内网oj\n";
cout<<"2.打开一中hydro.ac oj\n";
cout<<"3.一中hydro题库\n";
cout<<"4.打开作者的oj\n";
cout<<"5.其他\n";
cout<<"\n P 键开关小工具\n";
cout<<"\n\n\n如果老师来了,请按Q";
if(x==1) system("start http://192.168.26.182");
if(x==2) system("start https://hydro.ac/d/zsyzoj/");
if(x==3) system("start https://hydro.ac/d/zsyzoj/p");
if(x==4) system("start https://hydro.ac/d/luoguzwh/");
if(x==5){
x=0;
Sleep(500);
for(;;){
system("cls");
if(KEY_DOWN('Q')) system("taskkill /f /im ConsolePauser.exe /t");
if(KEY_DOWN('1')) x=1;
if(KEY_DOWN('2')) x=2;
if(KEY_DOWN('3')) x=3;
if(KEY_DOWN('4')) x=4;
if(KEY_DOWN('5')){break;}
cout<<"请选择:\n";
cout<<"1.想随机一下题目?\n";
cout<<"2.赞助作者一个赞\n";
cout<<"3.打开小游戏\n";
cout<<"4.打开作者的oj\n";
cout<<"5.退出\n";
if(x==1){system("start https://hydro.ac/d/luoguzwh/discuss/640b10486e3e2e6403c92e7a#1678446820268");Sleep(500);}
if(x==3) {
system("cls");
cout<<"1.我写的\n";
cout<<"2.整理的\n";
int np=0;
for(;np!=1&&np!=2;){
cin>>np;
}
if(np==1){system("start https://hydro.ac/d/luoguzwh/discuss/63f8473fd97ee51ffa3bece6#1678104878031");Sleep(500);}
if(np==2){system("start https://www.luogu.com.cn/blog/AK--IOI/xiao-you-hu");Sleep(500);}
}
if(x==4){system("start https://hydro.ac/d/luoguzwh/");Sleep(500);}
if(x==2){system("start https://www.luogu.com.cn/user/739784");Sleep(500);}
Sleep(20);
}
Sleep(500);
}
Sleep(20);
}
return 0;
}
1 条评论
-
初一18班范梓彬 LV 3 @ 2023-3-15 20:58:21
hao la a
- 1