Hi guys, is there a pre-defined sort method I can use in C++ instead of writing my own. All I want for now is to sort a list of ints.
Example...
int list[] = {5,3,15,12,5};
sort(list, 5)
Then it prints out 3,5,5,12,15.
I heard there was one in #include<algorithm> but when I write it, it gives me error. Thanks guys.