Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
C-language Hangman games
no vote
The word guessing game is simulated with C language. The game includes: word management, player records, guessing process, system settings and other basic functions that must be completed, as well as performance calculation, guessing time limit, thesaurus management and other optional expansion functions. (1) Word management: the words used to do puzzles in the program must be stored in the disk file, and the number of words in the file must not be less than 200. (2) Player record: the program requires the top five results to be recorded. Performance indicators are self-designed and must include time. When recording, it is required to have three items: ranking, player's name and score, and save them in the file. When the program starts to run, it must be read in, so that players can query and update their scores at any time. (3) The process of guessing words: first, ask the user to input the number of guessing words, which can have a default value. ② For each word, the system displays the corresponding number '-' on the screen according to the length of the answer word. Assuming that the answer word is & quot; Hello & quot;, the system outputs & quot; - & quot; on the screen;. ③ The player inputs a letter to guess. If the letter is not in the word, the system prompts the player that it is not right. If the player guesses the letter correctly, for example, the player inputs an 'l', then & quot; -- ll - & quot; will be output on the screen;. ④ Repeat 3 until the player guesses the word within the specified number of times or the game fails more than the number of times. ⑤ Display the player each word guess right and guess wrong times and other statistical information. If the player guesses the word, calculate the score, such as entering the top five, prompt the player and record it in the record file. ⑥ Ask the player whether to start a new round of word guessing. If the player chooses "no", the system will retreat to the outside menu. (4) System settings: guess the number of words can be the default value. When playing, you can modify it.
do小样
2016-08-23
0
1
No more~