2
0

tw39323.pp 327 B

123456789101112131415161718192021222324
  1. program project1;
  2. {$mode objfpc}{$H+}
  3. {$ZeroBasedStrings On}
  4. uses sysutils;
  5. var
  6. S: String = 'Cat';
  7. U: UnicodeString = 'Cat';
  8. W: WideString = 'Cat';
  9. begin
  10. S[0] := 'H';
  11. if S<>'Hat' then
  12. halt(1);
  13. U[0] := 'H';
  14. if U<>'Hat' then
  15. halt(1);
  16. W[0] := 'H';
  17. if W<>'Hat' then
  18. halt(1);
  19. WriteLn('ok');
  20. end.