Hi,
I'm wants to make a quiz game, where I have 2 2-dimentional arrays, 1 with questions and 1 with the answers. Where there are a number of questions and the user starts from question 1 and continues to the end, and then when he/she has answered all the questions the program would tell how many correct answers the user had.
So I was wondering if anybody in here have some good tips that would be useful? Maybe about how to organize the code for/while loop. Anything?
And then a question about the comparisment of the correct- and persons answer, I could use strcmp to compare them, but as far as I remember strcmp takes to const char variables, and the answer variable would not be const because I would like to use the same variable through the program, I this going to be a problem?
And if you have anything else you want to warn me about, or tell your very welcome![]()



LinkBack URL
About LinkBacks



