|
steps to follow
=========
1) create group of words
-find the words you want
-put them in a char array--->char words[N][M]
where N is how many words and M the maximum length of a word.
2) computer word
-calculate a random number from 0...N-1
-rand,srand,time....
-find the word for this random number --->words[random]
3) print words on computer screen
-printf,cout,...
one , two, ..........
4) get user input
cin,scanf,fgets.....
5) compare the user input with computer word
-strcmp for example
-if (success...) human++ else computer++
now write your code and post it here for debugging.
Last edited by virxen; 16Mar2010 at 16:38..
|