G
Guest
Does anyone know how to tell if a structure exists in an expression? If I
have a structure
struct hits {
uint numhits,maxhits;
char ch;
}
public void test( )
{
hits result, oldresult;
if (result) // in C/C++ I can test if result exists.
oldresult = result;
}
How do I find out if result has been set or not if the value is not defined?
have a structure
struct hits {
uint numhits,maxhits;
char ch;
}
public void test( )
{
hits result, oldresult;
if (result) // in C/C++ I can test if result exists.
oldresult = result;
}
How do I find out if result has been set or not if the value is not defined?