I was wondering if there is some kind of a mechanism in C++ that allow me to automatically togle other bool variables when I set one e.g: If I have something like that:
bool first=true;
bool second =false;
bool third=false;
Then if I need to have:
first =false;
second=false;
third =true;
Is there any thing that allows to to change the state of only one bool variable and automatically changes (or keeps) states of other bool variables according to any rule ?
Aucun commentaire:
Enregistrer un commentaire