码迷,mamicode.com
首页 >  
搜索关键字:猜数字小游戏    ( 42个结果
python猜数字小游戏
...
分类:编程语言   时间:2016-04-30 22:17:06    阅读次数:159
c语言实现猜数字小游戏
#include<stdio.h>#include<stdlib.h>#include<time.h>voidfun(intc){srand((unsigned)time(NULL));intret=rand()%100+1;printf("请输入一个数>");while(1){scanf("%d",&c);if(c==ret){printf("正确\n");break;}elseif(c>ret){printf("猜大了\n");..
分类:编程语言   时间:2015-12-09 20:03:34    阅读次数:228
1208.1——猜数字小游戏
#include #include #include #include int main(int argc, const char * argv[]) { /* 4位数 从小到大 没有重复 1-9 A 表示存在而且位置也对的个数 B 表示存在但是位置不对 1 2 3 4 1 4 6 8 ...
分类:其他好文   时间:2015-12-08 21:49:24    阅读次数:118
java类的封装 继承 多态
1、猜数字小游戏package cn.jiemoxiaodi_02;import java.util.Scanner;/** * 猜数字小游戏 * * @author huli * */public class GuessNumberDemo { public static void mai...
分类:编程语言   时间:2015-12-08 14:21:52    阅读次数:188
猜数字小游戏
#include<stdio.h>//猜数字游戏#include<stdlib.h>intmain(){inti=0;printf("猜数字小游戏\n");printf("********************************\n");printf("**********1开始**************\n");printf("**********0退出游戏***********\n");printf("******************..
分类:其他好文   时间:2015-10-29 16:25:59    阅读次数:151
猜数字小游戏
#include<stdio.h>#include<stdlib.h>#include<time.h>voidprint_menu(){ printf("**********************\n"); printf("*******1.start******\n"); printf("*******0.exit******\n"); printf("**********************\n");}intmain(){ printf("欢迎使用猜数..
分类:其他好文   时间:2015-10-25 22:44:16    阅读次数:272
c语言简单的猜数字小游戏
//系统随机生成0--100的数,你猜是多少,大了或小了提示,猜对为止。 #include<stdio.h> #include<stdlib.h> #include<time.h> intmain() { inta=0,b=-1; intnum=1; while(num==1) { printf("是否进行游戏(1:是0:否)"); f: scanf("%d",&num); if((..
分类:编程语言   时间:2015-07-23 00:56:49    阅读次数:165
C语言猜数字小游戏
#include #include #include int main() { int x,num,st,ed; char ch; srand((int)time(NULL)); while(1) { printf("请输入你想要猜的数的范围(用空格隔开):"); scanf("%d %d",&st,&ed); ed=ed-st+1; num=rand()%ed+s...
分类:编程语言   时间:2015-05-24 08:58:27    阅读次数:234
个人项目-猜数字小游戏
一 题目简介猜数字小游戏二 源码的github链接链接:https://github.com/gaoshuhua/master三 所设计的模块测试用例、测试结果截图import static org.junit.Assert.*;import org.junit.Test;public cl...
分类:其他好文   时间:2015-05-03 18:46:19    阅读次数:134
写程序引发的思考
??     最近2个月除了完成日常的工作以外,还在练习数据结构这一块的知识,因为感觉数据结构自己还不是很熟悉,最近 完成的练习如下: 数据结构练习连接:http://blog.csdn.net/qlx846852708 1.顺序表的实现 2.单向链表的实现--通讯录 3.队列的实现--银行排队系统 4.c语言猜数字小游戏 5.计算圆周率 6.输入年、月、日计算星期几...
分类:其他好文   时间:2015-02-09 23:11:25    阅读次数:178
42条   上一页 1 2 3 4 5 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!