📜  帕斯卡备忘单 - 帕斯卡代码示例

📅  最后修改于: 2022-03-11 14:44:44.888000             🧑  作者: Mango

代码示例10
type
  shapeType = (square, rectangle, circle);

  shape = record
    centerX, centerY: real;

    case kind: shapeType of
      square: (side: real);
      rectangle: (length, height: real);
      circle: (radius: real);
    end;