title: How to get the opposite value of a bool variable in C++
body: <p>To me, a bool variable indicates either <strong>true</strong> or <strong>false</strong>.</p>
  
  <p>Some bool variable was defined and initialized to a value unknown to us. I just want to get the opposite value of it. How should I do it in C++?</p>