Originally posted by ndmmxiaomayi:
OK. How about listing your problem?
Someone writes the pseudo code and you write the real codes yourself.
ok, i've done the pseudo myself.
my assignment is to create a hangman game with the c++ reading a file containing a column of words and points awarded for solving the words.
example:
donald 100
duck 50
mickey 200
mouse 150
something like that. so i had c++ to create 2 arrays, one to store the word and the other to store the points. and i did a cout<< to check if the array works and i could read specific elements.
now my problem is this. the user has to first input a number, like if he inputs 1, donald will be selected as the mystery word for him to solve.
so i have to get c++ to point to the array element. like if user inputs 1, it has to point to array element 0. since array starts with 0 isn't it.
i did that too. now i'm trying to do error checking, like when user inputs a char instead of an int, c++ should tell the user to input int. but it doesn't seem to work.
help!!