Добавил к седьмому заданию сравнение разных сортировок, сделал 9е задание на массивы
This commit is contained in:
parent
c33f7295d5
commit
a45af76154
25 changed files with 599 additions and 23 deletions
24
Sorting/7ExOriginal/tools.h
Normal file
24
Sorting/7ExOriginal/tools.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef TOOLS
|
||||
#define TOOLS
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#define exp 1.e-6
|
||||
|
||||
typedef void (sort_op)(double * array, int length);
|
||||
|
||||
FILE * getFile(void);
|
||||
double * getArray(FILE * file);
|
||||
bool orderliness(double * array, int length);
|
||||
void testSortRandomArray(sort_op op);
|
||||
void generate(double * array, int length);
|
||||
void printArray(double * array, int length);
|
||||
void testSort(double * array, int length, sort_op op);
|
||||
bool isSorted(double * array, int length);
|
||||
bool more(double a, double b);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue