![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
游戏
蒟蒻pzjdsg666
一个初一的中学生
展开
-
玩个小游戏
#include<bits/stdc++.h>using namespace std;long long a,b,c,d,x,n;int main(){ system("color 2A"); srand(time(0)); while(1){ a=rand(),b=rand(),n=rand()%4+1; if(n==1){ printf("%d+%d=?\n",a,b); cin>>c; if(c==a+b){ x++; c.原创 2021-06-05 09:59:30 · 99 阅读 · 3 评论 -
C++:又是一个小游戏
#include<bits/stdc++.h>using namespace std;long long a,b,c,d,x,n;int main(){ system("color 1D"); srand(time(0)); while(1){ a=rand()%3+1,b=rand()%3+1; cout<<"请选择:(1至3)"<<endl; cin>>n; while(b==a&&b==n) b=ran.原创 2021-06-08 20:34:47 · 99 阅读 · 2 评论 -
游戏真好玩
#include<bits/stdc++.h>using namespace std;long long a,n,m;char x,y;int main(){ system("color 3F"); srand(time(0)); cout<<"请输入总题数:"<<endl; cin>>n; cout<<"答题开始!"<<endl; for(int i=1;i<=n;i++){ a=rand()%3; .原创 2021-06-10 22:18:35 · 110 阅读 · 3 评论 -
一个好玩的c++小游戏 另外一个是木马病毒
#include<stdio.h>#include<ctime>#include<time.h> //suiji#include<windows.h> //SLEEP函数struct Player //玩家结构体,并初始化player{char name[21];int attack;int defense;int health;long int max_health;int level;int exp;int range_exp;.原创 2021-07-03 14:34:22 · 3763 阅读 · 3 评论 -
C++:贪吃蛇
Accepted Wrong Answer Runtime Error Invalid Interaction Time Limit Exceeded Memory Limit Exceeded Output Limit Exceeded File Error Pending Compile Error System Error No Testdata Partially Correct Judgement Failed Unknown|\ __ \ |\ \ |\ \ |\ \ |\ __ \ |\.原创 2021-07-10 21:45:03 · 170 阅读 · 1 评论