代码大全

(singke) #1

0 malloc( )
C


strncpy() strcpy() C
strcpy() strcmp(),
strncpy() strncmp() , ,
,


11.5


if


If ( ( ElementIdx<0 ) || ( MAX_ELEMENTS<ElementIdx ) ||
ElementIdx == LastElementIdx)
{

}
if :
Finished =((ElementIdx<0)||(MAX_ELEMENTS<ElementIdx));
RepeatedEntry =(ElementIdx == LastElementIdx);
if( Finished || RepeatedEntry)
{


}


Finished RepeatedEntry if


Pascal :
If ( (eof(InputFile) and (Not InputError)) and
(MinAcceptableElmts<ElmtCount) and (ElmtCount<=MaxElmts) ) then
begin
{ do something or other }

Free download pdf