If any compiler will give warning when meed variable show.
Following is the example code:
void foo()
{
int total;
if(...)
{
int total;
...
}
}
--
Regards,
Black Ice
Çë²»Òª»Ø¸´µ½ÎÒµ ÄÓÊÏä
×ÔÓÉ£¨liberty£© Î޷ǾÍÊÇÕâÑùÒ»Ö Ö³Ðŵ£ºÃ¿¸öÈ˽« »áµÃµ½Ò»ÖÖ±£ÕÏ£ ¬±£ÕÏÎÒÃÇ¿ÉÒÔÓë
ȨÍþ¡¢¶àÊý¡¢Á÷Ë ×¼°ÓßÂÛµÄÓ°ÏìÏà ¿¹ºâ¡£
Following is the example code:
void foo()
{
int total;
if(...)
{
int total;
...
}
}
--
Regards,
Black Ice
Çë²»Òª»Ø¸´µ½ÎÒµ ÄÓÊÏä
×ÔÓÉ£¨liberty£© Î޷ǾÍÊÇÕâÑùÒ»Ö Ö³Ðŵ£ºÃ¿¸öÈ˽« »áµÃµ½Ò»ÖÖ±£ÕÏ£ ¬±£ÕÏÎÒÃÇ¿ÉÒÔÓë
ȨÍþ¡¢¶àÊý¡¢Á÷Ë ×¼°ÓßÂÛµÄÓ°ÏìÏà ¿¹ºâ¡£
Comment