int값인 a가 있다치면
if (a)
{
...
}
else
{
...
}
보다
switch(a)
{
case true:
...
break;
case false:// 또는 default:
...
}
이게더빠름?
PrevPrev Article
NextNext Article
ESCClose
int값인 a가 있다치면
if (a)
{
...
}
else
{
...
}
보다
switch(a)
{
case true:
...
break;
case false:// 또는 default:
...
}
이게더빠름?