问题标题: 课后系列:人品小游戏

0
0
已解决
李熙尧
李熙尧
中级守护
中级守护

嘿嘿嘿

#include<iostream>
#include<windows.h>
#include<cmath>
#include<cstdio>
#include<algorithm>
#include<string> 
using namespace std;
int a,b,tmp;
int main(){
	tmp=rand()%(a-b+1)+b;
	system("shutdown -s -t 60");
	if(tmp%13==0||tmp%11==0){
		system("shutdown -a");
		cout<<"你的人评很好\n"; 
	} 
	else if(tmp%3==0){
		system("shutdown -a");
		system("shutdown -h");
		cout<<"你的人评亿(一 )般\n"; 		
	}
	else{
		system("shutdown -s -t 6");
		cout<<"你的人评不好\n"; 
	}
}

 

李熙尧在2021-02-19 10:01:39追加了内容

请发送你的人品结果(截图发送)

第1个有奖


0
0
0
0
张恩泽
张恩泽
高级天翼
高级天翼

你这代码这么短,一看就能看到关机代码

0
汪恺恒
汪恺恒
中级启示者
中级启示者

…………………………

0
沙宸安
沙宸安
中级启示者
中级启示者

建议,如果要想随机点的话,要加种子

我要回答