who can tell me is it all right?
Laurent R
rj45rt at hotmail.com
Mon Jun 12 01:39:48 MDT 2006
Hi,
I reviewed some codes from one project. I think it is not proper, but I
don't know the reason. Who can help me to explain it?
I don't think it is proper that 'break' exists in the bracket. It seems
not good that it remains in the local variable domain.
Do you think it is all right?
EXAMPLE:
switch (var)
{
case 1:
{
unsigned char ucTemp;
....(some operation)....
break;
}
case 2:
{
unsigned char ucTemp;
....(some operation)....
break;
}
default:
break;
}
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the PLUG
mailing list