rswest's Avatar, Join Date: Mar 2013
Newbie Member
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
Syperus's Avatar, Join Date: Sep 2011
Go4Expert Member
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.