[セットトップ]C++におけるbreak、continue、returnの違い
//break ( , ),continue , ( , ) ,return , ( )
:
while(x++ < 10)
{
if(x == 3)
{
break;
}
printf("%d\r
", x);
}
1 2 while
continue
while(x++ < 10)
{
if(x == 3)
{
continue;
}
printf("%d\r
", x);
}
:1 2 4 5 6 7 8 9 10 3, ile(x++ < 10)