NAND в CPP

// assuming A and B are boolean expressions NAND is the NOT of an AND so
cond = !(A && B)
// equivalently, in higher version of C++
cond = not(A and B)
wolf-like_hunter