please help me for fix errors in the multi choise question programming

Jan 10, 2019 at 11:06pm
please help me for fix errors in the multi choise question programming . please please

 
Last edited on Jan 11, 2019 at 9:55am
Jan 10, 2019 at 11:14pm
Line 23: void askQuestin ( );

Line 114-118:
1
2
3
4
5
	q1.askQuestion();
	q2.askQuestion();
	q3.askQuestion();
	q4.askQuestion();
	q5.askQuestion();

See the typo?

Line 120:
cout << "Your Total Score is " << Total << " out of 100" < endl;
change to:
cout << "Your Total Score is " << Total << " out of 100" << endl;
(Another typo)

Line 164: cin >> Guess;
164:9: error: 'Guess' was not declared in this scope

Perhaps you wish to do:
1
2
int Guess;
cin >> Guess;


In general, read the compile errors closely, because they will contain line numbers close to where the actual error is. Typos are usually easy to spot once you know where to look.
Last edited on Jan 10, 2019 at 11:15pm
Jan 10, 2019 at 11:22pm
hi , Ganado .

very Very nice . thank You Thank you , Very much .
Jan 11, 2019 at 11:11am
Please DON'T delete things from your question after you've received an answer. It ruins this thread as a learning resource for others.

Please edit your OP to restore the deleted content.
Topic archived. No new replies allowed.