Copied step 2
This commit is contained in:
parent
da115cb5d6
commit
366effebec
11 changed files with 626 additions and 70 deletions
|
|
@ -1,9 +1,9 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding
|
||||
* ---------------------------------------------------------
|
||||
* Exercise Number: S06
|
||||
* Exercise Number: S05
|
||||
* Title: Insertion sort
|
||||
* Author: */<your name>;/*
|
||||
* Author: Marc Tismonar
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Implements the insertion sort strategy
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* @param criterion The pointer to the function that implements the sorting criterion.
|
||||
* That function accepts two integer parameters and returns a boolean value.
|
||||
*/
|
||||
void insertion_sort_list(<params>);
|
||||
void insertion_sort_list(IntList list, criterion_fn criterion);
|
||||
|
||||
/**
|
||||
* Sorts the given array according to the insertion sort strategy.
|
||||
|
|
@ -34,6 +34,6 @@ void insertion_sort_list(<params>);
|
|||
* @param criterion The pointer to the function that implements the sorting criterion.
|
||||
* That function accepts two integer parameters and returns a boolean value.
|
||||
*/
|
||||
void insertion_sort_array(<params>);
|
||||
void insertion_sort_array(int array[], int length, criterion_fn criterion);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue