boolean define code example
Example: boolean meaning
while (tries < 4) {
cout << "Do you want to proceed (y or n)?\n";
char answer = 0;
cin >>answer;
switch (answer) {
case 'y':
return true;
case 'n':
return false;
default:
cout << "Sorry, I don't undersand that.\n";
++tries;
}