Pascal - bad number format
Posted
by Donator
on Stack Overflow
See other posts from Stack Overflow
or by Donator
Published on 2010-05-16T16:45:19Z
Indexed on
2010/05/16
16:50 UTC
Read the original article
Hit count: 254
Program:
program s;
type info = record
name, surname: string;
min, sek: integer;
end;
type arrays = array[1..50] of info;
var c, b: text;
A: arrays;
gr_sk,
grup_dal: integer;
begin
assign(c, 'info.txt'); reset(c);
read(c, gr_sk);
read(c, grup_dal);
id := 1;
read(c, A[id].name);
read(c, A[id].sek);
close(c);
end.
info.txt file:
3
4
yhgf
4
Please, tell me what is wrong with that. It says that it is bad number format for line 19 I guess.
© Stack Overflow or respective owner