Question: How to set a boolean value to true after it was false twice? C++ example. bool Hello::verifystate() { bool mBool = child->mBools; //value always is

How to set a boolean value to true after it was false twice? C++ example.
bool Hello::verifystate()
{
bool mBool = child->mBools; //value always is false
return mBool;
}
void Hello::do()
{
if (verifyState()) come here twice
{
perform first set of actions
}
else //come here twice
{
perform second set of actions
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!