-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
33 lines (29 loc) · 825 Bytes
/
Copy pathmain.h
File metadata and controls
33 lines (29 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**\file
* \brief Main file for gdi-algorithms
*
* Implements bubblesort, mergesort and quicksort. Runtime of these
* algorithms is measured in seconds and displayed.
* Also, binary search is implemented for the second task.
*/
#ifndef GDI_ALGORITHMEN_MAIN_H
#define GDI_ALGORITHMEN_MAIN_H
#define MAX_NUMBER 32767
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
struct node {
int number;
char text[20];
} typedef node;
/**
* \brief Generates an array (list) of struct node.
*
* Generates an array (list) of struct node, fills it with random data
* and returns a pointer to the start (first element) of the array.
*
* @param elementCount Amount of elements to be used
* @return Pointer to list
*/
node* randomizedArray(int elementCount);
#endif //GDI_ALGORITHMEN_MAIN_H