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" ?
1 Answer
+ 2
You can compare the strings and check their equality. Like:
cin >> answer;
if(answer == "true") {
//some code
}