
小游戏
XITMan
这个作者很懒,什么都没留下…
展开
-
C语言小游戏(猜数字)
哈哈哈,很简单的一个小游戏,有兴趣的可以玩一下(虽然很low)。用rand和srand和time库来获取随机数。 /*猜数字小游戏*/ #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { int number=0,count=0,i_s_number=0,min=0,max=100; srand((unsigned) time(NULL)); number=rand()%100;原创 2020-06-15 16:35:39 · 333 阅读 · 2 评论 -
C语言(推箱子小游戏)简单易学
推箱子小游戏 #include <stdio.h> #include <stdlib.h> #include <getch.h> int main() { char arr[8][8] = { {0,0,1,1,1,1,0,0}, {0,0,1,0,0,1,1,1}, {1,1,1,0,0,0,0,1}, {1,0,0,6,4,1,0,1}, {1,0,0,2,...原创 2019-12-21 17:55:19 · 246 阅读 · 1 评论