Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Boolean Fundamental Type in Action

#include "stdafx.h" using namespace System; void main() {     bool a = 18757;   // will give a warning but set to true     bool b = 0;       // false     bool c = true;    // obviously true     bool d = false;   // obviously false     Console::WriteLine( a );     Console::WriteLine( b );     Console::WriteLine( c );     Console::WriteLine( d ); }