Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Game Programming (http://www.go4expert.com/articles/game-programming/)
-   -   Hangman game source code (http://www.go4expert.com/articles/hangman-game-source-code-t1142/)

rswest 4Mar2013 20:07

Re: Hangman game source code
 
hello. this is my first post here. thank you for the code. now i understand how the game actually works. but i have a question. instead of typing the word to guess how can i use files r text files as source for the words to be guessed? im taking up programming as a minor subject in engineering and i really am finding it to be fun. i also have an assembly subject which is driving me nuts. so far i am finding C to be easier :D can anyone help me? thanks

Syperus 7Mar2013 10:05

Re: Hangman game source code
 
Quote:

Originally Posted by rswest (Post 99140)
hello. this is my first post here. thank you for the code. now i understand how the game actually works. but i have a question. instead of typing the word to guess how can i use files r text files as source for the words to be guessed? im taking up programming as a minor subject in engineering and i really am finding it to be fun. i also have an assembly subject which is driving me nuts. so far i am finding C to be easier :D can anyone help me? thanks

Use Regex. Have all the words in a .txt file and fstream to read them and use regex to split it up into chars.


All times are GMT +5.5. The time now is 06:49.