stblsrt1.cpp
stblsrt1.cpp
#include ‹stl.h›
#include ‹iostream.h›
int array[6] = {1, 50, -10, 11, 42, 19};
int main() {
stable_sort(array, array + 6);
for (int i = 0; i ‹ 6; i++) cout ‹‹ array[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}
stblsrt1.cpp
#include ‹stl.h›
#include ‹iostream.h›
int array[6] = {1, 50, -10, 11, 42, 19};
int main() {
stable_sort(array, array + 6);
for (int i = 0; i ‹ 6; i++) cout ‹‹ array[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}