0
How make quiz or answer-question game proqram in C++?
6 ответов
0
I think you need a counter to count the correct or wrong answers, each time a question is answered.
If a false answer counterFalse=counterFalse +1, if a right answer counterTrue=counterTrue+1.
Then at the end, you can show the player total correct and wrong answers by printing counterTrue and counterFalse on the screen
int counterTrue =0,counterFalse=0, answer;
cout<< Anwer my question <<endl;
cin >>answer;
If (answer== "a")
{counterTrue=counterTrue +1}
else
{counterFalse =counterFalse +1}
I wish this helps
(also you can do this by using only one counter)
0
thank you for helping me) but i want creat to dialog
0
Can you explain more about what you want to do?
0
for example i want print
my cod:hello
i:hello
my cod:how are you
i:fine and you
(ps.i want creat such proqram)
0
can you explain you ?
0
You mean you want to chat with computer?