-
个人简介
☑♓☯ 我要🚀️
☴ ☲ ☷ ☳ ☯ ☱ ☶ ☵ ☰
金琙剀听见的传闻 班长说:走,我们去炸外星人
副班长说:这个主意不错
化学课代表负责提取氢气
英语课代表到外国购买进口爆炸材料
物理课代表负责拼装氢弹
数学课代表负责计算爆破面积
地理课代表负责策划爆破地点
信息课代表负责打倒计时爆炸代码
美术课代表负责绘画爆炸蘑菇云
历史课代表负责记录光辉场面并将其载入史册
体育课代表负责屠杀懵逼的外星人
生物课代表负责事后生态环境
音乐课代表负责奏乐安抚众人
政治课代表负责使用法律打官司
语文课代表负责乱写文章推卸责任
班主任:干得漂亮!
班长说:走,我们去炸SB
副班长说:这个主意不错
化学课代表负责提取沙黄和钴
英语课代表到外国购买进口爆炸材料
物理课代表负责拼装沙黄钴弹
数学课代表负责计算爆破面积
地理课代表负责策划爆破地点
信息课代表负责命令无人机投掷沙黄钴弹
美术课代表负责绘画爆炸蘑菇云
历史课代表负责记录光辉场面并将其载入史册
体育课代表负责屠杀懵逼的SB
生物课代表负责事后生态环境
音乐课代表负责奏乐安抚众人
政治课代表负责使用法律打官司
语文课代表负责乱写文章推卸责任
#include<bits/stdc++.h> #include<windows.h> #include<conio.h> using namespace std; void sb(string s){ for(int i=0;s[i]!='\0';i++){ Sleep(50); cout<<s[i]; } } void wa(string a,int f){ cout<<a<<setw(10)<<f<<endl;Sleep(100); if(a=="Time Excssded")Sleep(500); } int main(){ sb("0 Waiting");Sleep(500);system("cls"); sb("0 Compiling");Sleep(500);system("cls"); sb("0 Running");Sleep(500);system("cls"); sb("0 Wrong Answer\n"); for(int i=1;i<=5;i++){ wa("Wrong Answer",0); } for(int i=1;i<=5;i++){ wa("Time Excssded",0); } _getch(); return 0; }
#include <iostream> #include<conio.h> #include<stdlib.h> #include<time.h> #include<windows.h> using namespace std; void Start(); void game(); int i, j, life, maxrand; char c; void Start() { i = 0; j = 0; life = 0; maxrand = 6; cout<<"请选择难度:\n"; // the user has to select a difficutly level cout<<"1 : 简单 (0-15)\n"; cout<<"2 : 中等 (0-30)\n"; cout<<"3 : 困难 (0-50)\n"; cout<<"或者点其他按键以退出\n"; c=30; c=_getch(); // read the user's choice cout<<endl; switch (c) { case '1': maxrand = 15; // the random number will be between 0 and maxrand break; case '2': maxrand = 30; break; case '3': maxrand = 50; break; default: cout<<"确定退出?(0:不退出;1:退出)"; if(_getch()=='1')exit(0); else break; break; } life = 5; // number of lifes of the player srand((unsigned)time(NULL)); // init Rand() function j = rand() % maxrand; // j get a random value between 0 and maxrand game(); } void game() { if (life <= 0) { // if player has no more life then he loses cout<<"你输了!\n\n"; system("cls"); Start(); } cout<<"猜一个数: \n"; cin >> i; if((i>maxrand) || (i<0)) { // if the user number isn't correct, restart cout<<"错误:这个数不在1和"<<maxrand<<"之间"; game(); } if(i == j) { cout<<"你赢了!\n\n"; // the user found the secret number Sleep(3000); system("cls"); Start(); } else if(i>j) { cout<<"太大了!\n"; life=life-1; cout<<"还有: "<<life<<"条命\n\n"; game(); } else if(i<j) { cout << "太小了!\n"; life = life - 1; cout << "还有: " << life << "条命\n\n"; game(); } } int main() { cout<<"** 猜数 **\n"; cout<<"你要在游戏里猜一个数。\n"; cout<<"程序会告诉你这个数是太大了还是太小了,\n"; cout<<"以帮助你找到那个数\n\n"; system("pause"); system("cls"); Start(); return 0; }

-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
This person is lazy and didn't write any solutions.