原文
对比:
_Array_ptr<int> p
(nor)
int p[..] &#61; a;
我更喜欢:
int a[5] &#61; { 0, 1, 2, 3, 4};
&#64;checked int p[] &#61; a;
另一示例:
int find (int key , &#64;checked int a[] : len, int len )
{for (int i &#61; 0; i < len; i &#43;&#43;){if (a[i] &#61;&#61; key ){return i;}}return -1;
}