代码大全

(singke) #1

/lots of code/
goto
C else
if ( StatusOK )
{
if ( DataAvail )
{
ImportantVar = x;
DoLotOfCode( ImportantVar );
}
}
else
{
ImportantVar = GetVal( );
DoLotsOfCode( ImportantVar );
}
C


C else goto:
if ( ( StatusOK && DataAvai ) || !StatusOK )
{
if ( StatusOK && DataAvail )
ImportantVar = x;
Else
ImportantVar = GetVal( );
/* lots of code */
......
}

StatusOK DataAvail if
StatusOK if DataAvail


16.1.6 goto


goto goto
goto,
if

Free download pdf