非常适合新手的一个小游戏,可以锻炼自己对判断语句的使用
一个猜数字的小游戏
#include "stdafx.h"//vs2017环境下
#include <stdlib.h>
#include <time.h>
int guess, rand1, maxrand;// guess 用户猜的数字,rand1 系统随机生成的数字,maxrand 用来控制系统生成的随机数字范围
void gamestart();//启动程序
vo...
原创
2018-12-21 11:38:52 ·
410 阅读 ·
0 评论