MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/sorting/library_sort.cpp:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75int 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}

Callers

nothing calls this directly

Calls 1

librarySortFunction · 0.85

Tested by

no test coverage detected