procedure hwrite(a:array[0..25] of integer); 
     提示是这样啊
[Error] sixUnit1.pas(63): 'OF' expected but '[' found
  [Error] sixUnit1.pas(78): ';' expected but 'PROCEDURE' found

解决方案 »

  1.   

    第一个是因为你的变量声明错误,不支持[number]的写法第二个是你上一个语句没有打“;”
      

  2.   

    procedure hwrite(var a:array[0..25] of integer);
      

  3.   

    ly840325:那应该怎样啊?谢谢
    dongteng()说得不行啊
      

  4.   

    不能直接在参数中定义数组,
    如果非得定义,可以变通如下,
    先定义一个类型:
    type myType=array[1..25] of integer;
    再定义
    procedure hwrite(var a:myType);
    我不知道如此写法是否合乎语法,因为我在网吧,没有环境。
      

  5.   

    楼上说的正确,我在delphi帮助文档中找到的原话:
    When you declare routines that take array parameters, you cannot include index type specifiers in the parameter declarations. That is, the declarationprocedure Sort(A: array[1..10] of Integer);   // syntax errorcauses a compilation error. Buttype TDigits = array[1..10] of Integer;procedure Sort(A: TDigits);is valid.
      

  6.   

    procedure hwrite(const a:array of integer);