码迷,mamicode.com
首页 >  
搜索关键字:猜数字    ( 536个结果
C语言编写猜数字的小游戏
#include<stdio.h>#include<stdlib.h>#include<time.h>intmain(){ intnum; srand((unsigned)time(NULL)); intret=rand()%100+1; while(1) { printf("请输入一个数字>>\n"); scanf("%d",&num); if(num>ret) printf("猜大了!"); if(num<..
分类:编程语言   时间:2015-12-08 07:16:28    阅读次数:128
猜数字游戏
You are playing the followingBulls and Cowsgame with your friend: You write down a number and ask your friend to guess what the number is. Each time y...
分类:其他好文   时间:2015-12-04 10:31:27    阅读次数:102
我的第一个Apple Watch小游戏——猜数字(Swift)
这是一个在AppleWatch上实现的一个小型App,开发语言为Swift。是一个猜数字的游戏,屏幕上会出现不同数字的滚动,并能控制游戏的开始结束,让别人来猜数字。是不是很有意思。还可以多个人来玩这个游戏,比大家谁最后的数字大。 该应用我已经上传至 https://github.com/chenyufeng1991/GuessNumber   。       由于该应用我主要是在Watch上...
分类:移动开发   时间:2015-11-11 16:38:07    阅读次数:309
第一个c语言实现的猜数字游戏
#include<stdio.h> #include<Windows.h> #include<stdlib.h> #include<stdio.h> #include<Windows.h> #include<stdlib.h> #include<time.h> voidoutput() { printf("*********************欢迎玩猜数字游戏***********************..
分类:编程语言   时间:2015-11-05 00:52:38    阅读次数:255
LeetCode:Bulls and Cows - 猜数字游戏
1、题目名称 Bulls and Cows(猜数字游戏) 2、题目地址 https://leetcode.com/problems/bulls-and-cows/ 3、题目内容 英文:You are playing the following Bulls and Cows game with your friend: You write a...
分类:其他好文   时间:2015-11-01 00:30:51    阅读次数:167
猜数字游戏
#include<stdio.h> #include<time.h> #include<stdlib.h> voidprint() { printf("**************************\n"); printf("*******1.start********\n"); printf("*******0.exit********\n"); printf("**************************\n"); } voidplay(i..
分类:其他好文   时间:2015-10-30 15:32:29    阅读次数:112
猜数字小游戏
#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> intmain() { intinput=1; while(input) { printf("***********************\n"); printf("*****>1.开始游戏*******\n"); printf("*****>0.退出游戏*******\n"); printf("*********..
分类:其他好文   时间:2015-10-29 07:23:29    阅读次数:139
c语言小程序:编写猜字游戏
#include<stdio.h>#include<stdlib.h>#include<time.h>intmain(){ intinput=1; printf("欢迎使用猜数字游戏\n"); while(input) { printf("**********************\n"); printf("*******1.start******\n"); printf("*******0.exit******\n"); printf("*******..
分类:编程语言   时间:2015-10-28 07:12:19    阅读次数:181
代码:猜数字!
packagemyjavase;importjava.util.Scanner;//importjavax.swing.JOptionPane;publicclassq3{ publicstaticvoidmain(String[]args){ intnumber=(int)(Math.random()*101); Scannerinput=newScanner(System.in); while(true) { System.out.println("\n请输入您猜测的..
分类:其他好文   时间:2015-10-28 01:45:17    阅读次数:164
536条   上一页 1 ... 38 39 40 41 42 ... 54 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!