文件名称:game
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:46.04kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
练习指针和基于指针的字符串操作,以及多模块文件编程。设计完成一个猜单词的小游戏wordZ。该程序将从一个字典中随机地选择一个单词,并用’-’字符告诉用户该单词有几个字母。用户每次输入一个字母后,程序判断该字母是否在该单词中,如果有则显示该单词中所有该字母,否则提示没有猜中。用户可以最多有8次猜测的机会(重复输入的字母不计入在内。)。如果用户在最大的猜测机会内猜中了该单词,则该次游戏用户胜利,否则用户失败。用户可以选择是否继续重复进行游戏。-Practice pointers and pointer-based string operations, as well as multi-module program files. Designed to complete a word guessing game wordZ. The program will randomly choose a dictionary, a word and use - character to tell the user there are several letters of the word. After each time a user enter a letter, the program to determine whether the letter of the word, if there is displayed in all the letters in the word, otherwise there is no guess prompted. Users can have up to eight times the chance to guess (to re-type the letters are not included in included.). If the user within the maximum opportunity to guess guessed the word, then the second game players win, or the user fails. Users can choose whether to continue to repeat the game.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
words.txt
wordz.cpp
wordz.dsp
wordz.dsw
wordz.ncb
wordz.opt
wordz.plg
randword.cpp
randword.h
wordz.cpp
wordz.dsp
wordz.dsw
wordz.ncb
wordz.opt
wordz.plg
randword.cpp
randword.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.