代码清单2-23 for(i = 0, j = n - 1; i < j; ) if(arr[i] + arr[j] == Sum) return (i, j); else if(arr[i] + arr[j] < Sum) i++; else j--; return(-1, -1);