C/C++ And-or-xor-not Resources