Skip to content

ReadLn doesnt't work #3

@avbelyaev

Description

@avbelyaev
program testRead;

type Signature = array[1..5] of integer;

var m:Signature;

begin
  ReadLn(m[1]);
  ReadLn(m[2]);
  ReadLn(m[3]);
  Write('->',m[1],' ',m[2],' ',m[3]);
end.

btpc.exe <testRead.pas >test.exe && test.exe
12
34
56
->12 0 0

ReadLn doesn't work if called a couple of times.
If change ReadLn -> Read, then it works as intented

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions