我想以簡單的方式排序數組,但我確實得到下面的錯誤。如何處理?'sort(int [2000],int)'沒有匹配的函數|而排序陣列
**No matching function for call to 'sort(int [2000], int)'|**
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int v[2000];
std::sort(v, 2000);
cout << "Hello world!" << endl;
return 0;
}
@chris:據此編輯。 – 2014-03-24 20:50:16