- Arts & Culture 5935
- Business & Economics 689
- Computers 310
- Dictionaries & Encyclopedias 81
- Education & Science 75719
- Abstracts 252
- Astrology 4
- Astronomy 1
- Biology 8
- Chemistry 2221
- Coursework 15444
- Culture 9
- Diplomas 411
- Drawings 574
- Ecology 5
- Economy 83
- English 75
- Ethics, Aesthetics 3
- For Education Students 17597
- Foreign Languages 11
- Geography 2
- Geology 1
- History 89
- Maps & Atlases 5
- Mathematics 13850
- Musical Literature 2
- Pedagogics 19
- Philosophy 23
- Physics 14821
- Political Science 5
- Practical Work 101
- Psychology 60
- Religion 4
- Russian and culture of speech 8
- School Textbooks 7
- Sexology 42
- Sociology 9
- Summaries, Cribs 87
- Test Answers 150
- Tests 9243
- Textbooks for Colleges and Universities 32
- Theses 24
- To Help Graduate Students 14
- To Help the Entrant 37
- Vetting 363
- Works 13
- Информатика 10
- Engineering 3059
- Fiction 696
- House, Family & Entertainment 107
- Law 132
- Website Promotion 71
Program for playing C words in C language
Uploaded: 11.01.2020
Content: phil74_Ci.zip 3992,75 kB
Product description
"A word game." The program selects a word and draws as many dashes on the screen as there are words in a word. Guess the word. If the letter that is included in this word is called, then it is substituted instead of a dash. Otherwise, the player loses one point. At the beginning, the player has 15 points.
Additional information
The program consists of two functions. The main one, which generates a random number n, opens the file and extracts a word with the serial number n from the file. Then the word processing function (drawWord) is called as a parameter, the word read from the file is passed to it. The function replaces the letters in the word with dashes and displays it on the screen. Then, it expects the user to enter a letter. The entered letter is analyzed, if it is present in the word, then the corresponding dash is replaced by this letter, if not, then the user is charged one out of 15 points.
Guessing ends if the user runs out of points or he guesses the word.
The result is displayed.
Feedback
0Period | |||
1 month | 3 months | 12 months | |
0 | 0 | 0 | |
0 | 0 | 0 |