cincship (Visitor) Sep 19, 2001
I'm using the Metrowerks Codewarrior compiler, and I am trying to do something like this in a for loop, inside a void function:
if ((structArray.info & someMask) == someMask)
{
cout << "something" << endl;
}
all I did was define three different masks globally in a header file then:
in a function in my implementation file, I used the bitwise or-- | --to set the above variable, using the masks, and based on a simple boolean expression
in another function in that same file I did the above with the same three masks
thank you
I'm using the Metrowerks Codewarrior compiler, and I am trying to do something like this in a for loop, inside a void function:
if ((structArray.info & someMask) == someMask)
{
cout << "something" << endl;
}
all I did was define three different masks globally in a header file then:
in a function in my implementation file, I used the bitwise or-- | --to set the above variable, using the masks, and based on a simple boolean expression
in another function in that same file I did the above with the same three masks
thank you