A35 begin
This commit is contained in:
parent
1a40514261
commit
0c51254202
|
@ -63,18 +63,6 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure testgoto
|
||||
begin
|
||||
write('Testing GOTO statement... ')
|
||||
goto start
|
||||
:uphere
|
||||
writeln('PASSED');
|
||||
goto end
|
||||
:start
|
||||
goto uphere
|
||||
:end
|
||||
end;
|
||||
|
||||
procedure testnumbers;
|
||||
var
|
||||
num1,
|
||||
|
@ -470,7 +458,6 @@ begin
|
|||
writeln ('');
|
||||
|
||||
testcase;
|
||||
testgoto;
|
||||
testnumbers;
|
||||
testrecords;
|
||||
testprocedures;
|
||||
|
|
|
@ -78,7 +78,7 @@ proc rumoradd {
|
|||
fassign (f, justpath(progname) + "rumors.dat", 2)
|
||||
freset (f);
|
||||
|
||||
if ioresult <> 0 frewrite(f);
|
||||
if ioresult != 0 frewrite(f);
|
||||
|
||||
while !feof(f) && datasize < 50 {
|
||||
datasize = datasize + 1
|
||||
|
@ -110,7 +110,7 @@ proc rumorshow {
|
|||
fassign (f, justpath(progname) + "rumors.dat", 2)
|
||||
freset (f)
|
||||
|
||||
if ioresult <> 0 exit
|
||||
if ioresult != 0 exit
|
||||
|
||||
while !feof(f) && datasize < 50 {
|
||||
datasize = datasize + 1
|
||||
|
@ -121,7 +121,7 @@ proc rumorshow {
|
|||
datasize = 0
|
||||
|
||||
freset(f)
|
||||
while datasize <> count {
|
||||
while datasize != count {
|
||||
datasize = datasize + 1
|
||||
freadln(f, data(datasize))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue