80粉粉福

· · 休闲·娱乐

TA来啦!!!!!
Q&A
1.你玩什么game?(@yinzifan)
玩MC、元梦(元梦很久没玩了)
2.你哪里的?(@yinzifan)
IP:宇宙 可观测宇宙 银河系 太阳系 地球 亚洲 中国 福建 龙岩 新罗区
3.星座
摩羯
4.有没有npy:
我**才5年级哪来的npy??? 见主页

C++游戏(版本:DevC++6.5):

#include <bits/stdc++.h>
#include <iostream>
#include <windows.h>
#include <time.h>
#include <stdlib.h>
#include <cmath>
#include <windows.h>

using namespace std;

int opt = 6, jia;
int z[16], top = 3, hat = 5;

struct Info {
    int a, b, c;
} x, y;

void out() {
    printf ("地图 : \n**********\n");
    for (int i = top; i >= 1; i--) {
        printf ("%d\n", z[i]);
    }
    printf ("**********\n");
    printf ("现最高指标 : %d\n", top);
}

void init() {
    for (int i = 1; i <= 3; i++) {
        z[i] = rand() % opt;
    }
    x.a = rand() % opt;
    x.b = rand() % opt;
    x.c = rand() % opt;

    y.a = rand() % opt;
    y.b = rand() % opt;
    y.c = rand() % opt;
}

void huan() {
    x.a = y.a;
    x.b = y.b;
    x.c = y.c;

    y.a = rand() % opt;
    y.b = rand() % opt;
    y.c = rand() % opt;
}

int main() {
    srand(time(0));
    init();
    while (1) {
        out();
        printf ("\n本轮 :\n1 : %d\n2 : %d\n3 : %d\n\n", x.a, x.b, x.c);
        printf ("下一轮 :\n1 : %d\n2 : %d\n3 : %d\n", y.a, y.b, y.c);
        int id;
        scanf ("%d", &id);
        if (id == 1)
            jia = x.a;
        if (id == 2)
            jia = x.b;
        if (id == 3)
            jia = x.c;
        if (top && z[top] == jia)
            --top;
        else {
            z[++top] = jia;
        }
        if (top == 0)
            break;
        if (top >= 16)
            break;
        huan();
        system("cls");
    }
    if (top == 0)
        printf ("很好!\n");
    else
        printf ("加油!\n");
    return 0;
}

C++模版:

#include <bits/stdc++.h>
//万能头,NOI系列比赛别开 
#include <time.h>
#include <stdlib.h>
#include <random>
//随机数头
#include <cstring>
#include <stack>
#include <queue>
#include <vector>
#include <list>
#include <map>
//STL模板库
#include <cmath>
#include <math.h>
#include <algorithm>
//算法
#include <cstdio>
//freopen
/*
#include <windows.h>
#include <conio.h>
//做游戏用的
*/
#define iv inline void
#define ii inline int
#define ill inline long long
#define is inline string
//定义函数 
#define x_2(x) x * x//x平方 
#define x_3(x) x * x * x//x立方
#define ctoi(x) x - '0'//char->int
#define TRUE 1
#define FALSE 0
#define EOF (-1)
#define pi 3.14
#define pi_5 3.14159
#define pi_7 3.1415926
//数值 

using namespace std;//命名空间

typedef long long ll;
typedef unsigned long long ull;
typedef string str;
const int N = 2000;//定义数组用的

//定义变量

//定义函数 

signed main(void) {

    return 0;
}
//主函数 

Bye~(提问题私或下面提)