Newbie Member
4Mar2013,20:07   #31
rswest's Avatar
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 can anyone help me? thanks
Go4Expert Member
7Mar2013,10:05   #32
Syperus's Avatar
Quote:
Originally Posted by rswest View Post
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 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.