I'm getting some very strange behaviour using the following switch statement:
string recognise_mti(int mti_code)
{
switch(mti_code)
{
case 1100:
case 1101:
return (mti_code + " (Auth. Request/Repeat)"); break;
default:
return (mti_code + " (NOT RECOGNISED)"); break;
}
}
It seems to return all sorts of things depending on the input integer. It's probably going to turn out to be a silly mistake but as of yet, I'm unable to recognise it. Appreciate any help.