| 73 | } |
| 74 | |
| 75 | int main() { |
| 76 | // ---example-- |
| 77 | int index_ex[] = {-6, 5, 9, 1, 9, 1, 0, 1, -8, 4, -12}; |
| 78 | int n_ex = sizeof(index_ex) / sizeof(index_ex[0]); |
| 79 | |
| 80 | librarySort(index_ex, n_ex); |
| 81 | std::cout << "sorted array :" << std::endl; |
| 82 | for (int i = 0; i < n_ex; i++) |
| 83 | std::cout << index_ex[i] << " "; |
| 84 | std::cout << std::endl; |
| 85 | |
| 86 | /* --output-- |
| 87 | sorted array : |
| 88 | -12 -8 -6 0 1 1 1 4 5 9 9 |
| 89 | */ |
| 90 | } |
nothing calls this directly
no test coverage detected