00001 00002 #include "stdinc.h" 00003 00004 local void print(bool a, bool b) 00005 { 00006 cerr << "a = " << a << " b = " << b << endl; 00007 } 00008 00009 main() // Mixing bool, TRUE, true, arithmetic and logical operations! 00010 { 00011 bool a, b; 00012 00013 a = true; 00014 b = false; 00015 print(a, b); 00016 00017 a = FALSE; 00018 b = !b; 00019 print(a, b); 00020 00021 a = 1 - a; 00022 b = 1 - b; 00023 print(a, b); 00024 00025 a = !a || !b; 00026 b = TRUE; 00027 print(a, b); 00028 }