+ 1
how to sort datas integer by descending using sort function in algorithm header...
3 Antworten
+ 1
vector vet;
...
sort(vet.rbegin, vet.rend);
+ 1
oh thanks, but i mean in arrays, but thanks for the vector
+ 1
#include <functional> // greater
...
int arr[TAM];
...
sort(arr, arr + TAM, greater<int>());