I have a stupid C++ question:

How is the syntax in C++ for this logic:


it's not a c++ question, it's just boolean algebra

if (
    (a == 1) && (b == 1) &&
    ((C == 1) || (C == -1))
   )

I mean how can the OR be included into an AND?


i don't think it's possible

Bernhard

Reply via email to