Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

reverse sort a vector

vector<int> v = { 10, 9, 8, 6, 7, 2, 5, 1 };
   sort(v.begin(), v.end(), greater <>());
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #reverse #sort #vector
ADD COMMENT
Topic
Name
5+5 =