Answers for "cpp condition variable"

C++
0

cpp condition variable

bool condition = // some boolean expression based on your variables
/*
  && is the same of and
  || is the same of or
  !  is the same of not
*/

if(condition)
{
 // do something
}
else
{
 // do something different
}
Posted by: Guest on February-17-2022

Browse Popular Code Answers by Language