编程娱乐
TOP-SECRET
这个作者很懒,什么都没留下…
展开
-
编程娱乐之五子棋
奉上五子棋:#include<bits/stdc++.h>using namespace std;const int X = 21; //棋盘行数const int Y = 21; //棋盘列数char p[X][Y]; //定义棋盘int m=0;//定义临时点,保存输入坐标int n=0;void display() //输出棋盘{ for(int i=0; i<X; i原创 2017-06-18 23:03:45 · 1232 阅读 · 0 评论 -
编程娱乐之石头剪刀布
#include#include#include/*************\* 剪刀 石头 布 ** 最简单小游戏 *\*************/int main(void){ char gesture[3][10] = {"剪刀","石头","布"}; int man, computer, result, ret; /*随机数原创 2017-06-25 09:31:19 · 978 阅读 · 0 评论 -
编程娱乐之俄罗斯方块
#include #include #include #include //游戏窗口 #define FrameX 4 //游戏窗口左上角的X轴坐标 #define FrameY 4 //游戏窗口左上角的Y轴坐标 #define Frame_height 20 //游戏窗口的高度 #define Frame_width 18 //游戏窗口的宽度 //定义全局原创 2017-06-25 14:53:56 · 900 阅读 · 0 评论