如题

解决方案 »

  1.   

    Operator Operation Operand types Result type Examplein membership ordinal, set Boolean A in Set1
      

  2.   

    for I:=0 to Length(ArrayName) - 1 do
      if Key = ArrayName[I] then
      ....
      

  3.   

    不知道长度,
    应该知道数组的结束值,
    就可以作
    int *varray; // 数组
    int *p=varray;
    while (*p!=x)  // x是结束值
    {
        if (*p==99)
        {
           ShowMessage("99 在数组中");
           break;
        }
        p++;
    }
      

  4.   

    用low、high、length可知数组上下标和长度
      

  5.   

    不知道长度 ? 没有 SetLength() 动态数组怎么存储的数据 ? ...
      

  6.   

    function Length(S): Integer;//S is a string- or array-valued expression.
      

  7.   

    由于是动态数组,肯定是从0开始,像上面那样从0到Length-1也可以