toperator4.pp 214 B

1234567891011121314151617181920
  1. unit toperator4;
  2. interface
  3. type
  4. op3 = record
  5. x,y : real;
  6. end;
  7. operator + (const a,b : op3) c : op3;
  8. implementation
  9. operator + (const a,b : op3) c : op3;
  10. begin
  11. c.x:=a.x+b.x;
  12. c.y:=a.y+b.y;
  13. end;
  14. end.