Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

test.C

Go to the documentation of this file.
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 }

Generated at Sun Feb 24 09:57:19 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001