Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要在 c++ 中对整个 C 风格的数组进行排序,我们说数组的长度sort(arr, arr + n);在哪里。n为什么该函数需要一个索引超过数组中的最后一个索引?
sort(arr, arr + n);
n