代码大全

(singke) #1

c :


RecCount = 0;
for( rewind(InFile);
!feof(InFile);
fgets(InputRec[RecCount], MAX_CHARS, InFile) );
{
RecCount++;
}

rewind feof
fgets RecCount
while
for while
C while


/ read all the records from a file /


rewind(InFile);
RecCount = 0;
while(!feof(InFile))
{
fgets(InputRec[RecCount], MAX_CHARS, InFile);
RecCount++;
}


15.2.2

begin end


C

c

while((InputChar getch()) ' \n')
;
InputChar=getch
InputChar!=' n'


c
do
InputChar = getch();

Free download pdf