- Arts & Culture 6405
- Books in Foreign Languages 149
- Business & Economics 4475
- Computers 2201
- Dictionaries & Encyclopedias 634
- Education & Science 96629
- Abstracts 1174
- Astrology 12
- Astronomy 13
- Biology 34
- Chemistry 5279
- Coursework 4133
- Culture 30
- Diplomas 2512
- Drawings 1481
- Ecology 29
- Economy 342
- English 1173
- Entomology 2
- Ethics, Aesthetics 23
- For Education Students 26101
- Foreign Languages 114
- Geography 19
- Geology 17
- History 313
- Maps & Atlases 36
- Mathematics 14523
- Musical Literature 7
- Pedagogics 232
- Philosophy 190
- Physics 15878
- Political Science 126
- Practical Work 138
- Psychology 468
- Religion 44
- Russian and culture of speech 101
- School Textbooks 69
- Sexology 68
- Sociology 48
- Summaries, Cribs 723
- Tests 20143
- Textbooks for Colleges and Universities 211
- Theses 189
- To Help Graduate Students 23
- To Help the Entrant 114
- Vetting 424
- Works 58
- Информатика 15
- Engineering 3357
- Esoteric 950
- Fiction 3301
- For Children 384
- House, Family & Entertainment 2508
- Law 2811
- Medicine 1159
- Newspapers & Magazines 344
- Security 274
- Sport, Tourism 1000
- Website Promotion 654
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.