void OptionAfalse() {
if (!a)
cout << "a is false" << endl;
bool a = true;
YIsTrue();
}
for 1, you need to surround your "IF" code with brackets. Your code basically ignored the If and runs everything anyway..you need to use brackets like..
Code:
IF ( something )
{
//do this code if something is truse
}
else
{
//run this code if something is false
}
without the brackets it's just throwing away the If's result then calling the below code unconditionally. (Unless you have a 1-liner after the If..then you need no brackets?) Also..at the top you declared 'Bool a', then in this code you say 'bool a = True' --> Are you trying to re-declare a (ie. new variable), because I think you just made a 2nd variable (local scope) w/ the same name..maybe that's what you were trying to do?