var
  D: array[-5..5] of Char;// 我居然今天才发现!

解决方案 »

  1.   

    呵呵
    还可以Array['a'..'z'] of char;http://lysoft.7u7.net
      

  2.   

    当然还可以这样
    var
      array of char;
      

  3.   

    type
      CDSDNFANS = (cfAD,cfWGYKING,cfihihonline,cfduxin,cfwg007)
    var
      D: array[cfAD..cfwg007] of Char;
      

  4.   

    type
      TTable= array [1..25,1..25] of Double;
    var
      table1:TTable;
      

  5.   

    这是pascal语法中数组的特点,而c中总是从0开始的
      

  6.   

    array[false..true] of Integer
    见过么?
      

  7.   

    不学 Pascal,直接用 delphi,悲哀。
      

  8.   

    var
      A: array (.Boolean.) of Byte;
      

  9.   

    type
       aset=(aa,bb,cc);var
      f:array[aset] of byte;
    begin
      f[aa]:=1;
      f[bb]:=2;
      f[cc]:=3;
    end;
      

  10.   

    type
       aset=(aa,bb,cc);
       Trec=record
        r1:byte;
        r2:byte;
       end;
    const
      f:array[aset] of Trec=((r1:1;r2:2),(r1:3;r2:4),(r1:5;r2:6));
    var s:aset;
    begin
      for s:=low(aset) to high(aset) do
        showmessage(inttostr(f[s].r1)+','+inttostr(f[s].r2))
    end;
      

  11.   

    To: zswang(伴水清清)(专家门诊清洁工) var
      A: array (.Boolean.) of Byte;真没见识过,为啥可以这样定义阿?为啥只保存Boolean值啊?迷惑中……
      

  12.   

    楼上的:Equivalent symbols
    Special symbol Equivalent symbols
    [ (.
    ] .)
    { (*
    ] *)
      

  13.   

    The left bracket  [  is equivalent to the character pair of left parenthesis and period  (.
    The right bracket  ]  is equivalent to the character pair of period and right parenthesis  .) 
    The left brace { is equivalent to the character pair of left parenthesis and asterisk  (*.
    The right brace } is equivalent to the character pair of right parenthesis and asterisk  *)
      

  14.   

    要是这么算的话,这咱也是数组了,不知道大家有没有这样用过
    Edit1.text[i]
    i取不同的值就相当于字符串内容里同的第几个字节
      

  15.   

    TO: jinjazz(人雅的标记--落寞刺客) 
       赐教了!TO: MY128(清水晶)
      字符串也算是数组了!揭帖!
      

  16.   


     MyClass& MyClassArray::operator [](int index//bool index,float index..);//还是c++灵活