type
data = record // record是什么意思呀 , 还有为什么用"="连接呀
XYZ: array [1..4] of integer;
end;

解决方案 »

  1.   

    record是记录的类型定义
    XYZ是记录的一个域
      

  2.   

    是记录类型的说明
    record和end是保留字
      

  3.   

    那 data 到底是什么呢?
      

  4.   

    定义一个新的数据类型data。record 就是记录。下面是记录所包含的字段,如:type
      score=record                //开始定义结构
        name:string[20];
        sex:boolean;
        age:[18..25];
        score:integer;
      end;                        //结束定义结构
    .......在程序中访问:var
      a:score;  //定义a为score类型的变量
    begin
      a.name:='goomoo';
      a.sex:=true;
      ......
    end;
      

  5.   

    data 只是数据类型名,可以为任意的非关键字。
      

  6.   

    C 语言:struct data
    {
      int a;
      float b;
      ....
    }
      

  7.   

    就跟一个表record中的字段一个字段XYZ