Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
hangman code for comp 1!!!
hi, i am doing the hangman code gor the comp 1 exam, i have managed create the menu options which allow you to enter a whole phrase and get a random word, these are fully working, also, i have managed to get the program to convert all of the letters that are guessed into upper case, i have created the 3 extra functions: 'getrandomword' which is called by menu option 3 (this gets a random word from the myphrases.txt document that was supplied), 'guesswholephrase' which is called by menu option 4, and 'checknewphrase' which is called within the 'getnewphrase' function so that if an incorrect character is entered eg.%, then an error message will appear. if anybody needs help with these just let me know, does anybody know if i have missed anything out? i saw something about not being able to enter the same letter twice by storing the ones previously entered into an array? i would really appreciate it if anyone could help...thanks!
0 · ·