Write a statement that toggles the value of the bool variable onOffSwitch . That is, if onOffSwitch is false , its value is changed to true ; if onOffSwitch is true , its value is changed to false .

LANGUAGE: C++

CHALLENGE:

Write a statement  that toggles the value  of the bool variable  onOffSwitch . That is, if onOffSwitch is false , its value  is changed to true ; if onOffSwitch is true , its value  is changed to false.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,