Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

stl sort in c++

sort(arr, arr+n, greater<int>()); // sorts in descending order
 
PREVIOUS NEXT
Tagged: #stl #sort
ADD COMMENT
Topic
Name
3+1 =