0

How can you make a true or false quiz through c++?

Can you make it so that if you have a cin and you write true it says something like "You said true" ?

8th Oct 2020, 10:23 AM
Lugli
Lugli - avatar
1 Antwort
+ 2
You can compare the strings and check their equality. Like: cin >> answer; if(answer == "true") { //some code }
8th Oct 2020, 10:39 AM
你知道規則,我也是
你知道規則,我也是 - avatar