tb0011.pp 492 B

12345678910111213141516171819202122232425
  1. { Old file: tbs0014.pp }
  2. { }
  3. type
  4. prec = ^trec;
  5. trec = record
  6. p : prec;
  7. l : longint;
  8. end;
  9. function test(p1,p2 : prec) : boolean;
  10. begin
  11. if p1^.l=12 then
  12. case p1^.l of
  13. 123 : test:=(test(p1^.p,p2^.p) and test(p1^.p,p2^.p)) or
  14. (test(p1^.p,p2^.p) and test(p1^.p,p2^.p));
  15. 1234 : test:=(test(p1^.p,p2^.p) and test(p1^.p,p2^.p)) or
  16. (test(p1^.p,p2^.p) and test(p1^.p,p2^.p));
  17. end;
  18. end;
  19. begin
  20. end.