ShakaZulu
Contributor
Soggy:bool isDIR ( int item )
{
switch ( item )
case RETRACTOR:
return false;
case CONSOLE:
return false;
case COMPASSONWRIST:
return true;
}
Shouldn't "item" be a "string"???
Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include
Soggy:bool isDIR ( int item )
{
switch ( item )
case RETRACTOR:
return false;
case CONSOLE:
return false;
case COMPASSONWRIST:
return true;
}
Good one!!Soggy:bool isDIR ( int item )
{
switch ( item )
case RETRACTOR:
return false;
case CONSOLE:
return false;
case COMPASSONWRIST:
return true;
}
Soggy:bool isDIR ( int item )
{
switch ( item )
case RETRACTOR:
return false;
case CONSOLE:
return false;
case COMPASSONWRIST:
return true;
}
ShakaZulu:Shouldn't "item" be a "string"???
Soggy:You don't write much C code, do you?
MikeFerrara:I do and I wold have some breaks statements and a default in there.
ShakaZulu:Shouldn't "item" be a "string"???
Soggy:You don't need the break statements since I'm returning, but a default would be nice....probably defaulting to false.