The plan is to have 25 questions, a score, make it look nice, and have a clear, readable code.
Right now what is stumping me with my very limited programming knowledge, is how to use this board:
//*****************************BOARD********************************* cout << "Your score is currently: "; cout << score << endl; cout << "|===================================================|\n"; cout << "| History | Science| Movies | US Presidents | Misc. |\n"; cout << "|=========|========|========|===============|=======|\n"; cout << "|a. 100 |f. 100 |k |p. |u. |\n"; cout << "|_________|________|________|_______________|_______|\n"; cout << "|b. 200 |g. 200 |l |q. |v. |\n"; cout << "|_________|________|________|_______________|_______|\n"; cout << "|c. 300 |h. 300 |m |r. |w. |\n"; cout << "|_________|________|________|_______________|_______|\n"; cout << "|d. 400 |i. 400 |n. |s. |x. |\n"; cout << "|_________|________|________|_______________|_______|\n"; cout << "|e. 500 |j. 500 |o. |t. |y |\n"; cout << "|_________|________|________|_______________|_______|\n"; cout << " Please type the letter of the question you would like to answer: \n"; cout << " "; cin >> bq;
to be the "home screen" if you will. What I need to know is how to make the user input (a,b,c,d...) go to the corresponding place in the code( the question), and then return to that home screen after the question is done.
Could some one please tell me what I should do, or point me in the direction of a place that i can get the information needed to solve my problem?
EDIT: i am using dev c++
This post has been edited by nitrozach54: 03 June 2009 - 02:43 PM

New Topic/Question
Reply



MultiQuote





|