C
Chris
Hi,
I try to print out truth-tables for an &&-operation using the following
code, unfortunatly I get compiler errors :
for ( byte i1=0; i1<=1; i1++)
{
for ( byte i2=0; i2<=1; i2++)
{
bool a = (bool)i1; // ERROR : convert type 'byte' to 'bool'
bool b = (bool)i2; // ERROR : convert type 'byte' to 'bool'
bool result = a && b;
}
}
how do I solve this ?
thnx
Chris
I try to print out truth-tables for an &&-operation using the following
code, unfortunatly I get compiler errors :
for ( byte i1=0; i1<=1; i1++)
{
for ( byte i2=0; i2<=1; i2++)
{
bool a = (bool)i1; // ERROR : convert type 'byte' to 'bool'
bool b = (bool)i2; // ERROR : convert type 'byte' to 'bool'
bool result = a && b;
}
}
how do I solve this ?
thnx
Chris