-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.h
More file actions
66 lines (43 loc) · 939 Bytes
/
tools.h
File metadata and controls
66 lines (43 loc) · 939 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Created by ys on 2019/4/7.
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "Tree/BinTree.h"
#include "Tree/HFTree.h"
#include "Graph/AdjLinkedList.h"
#include "Graph/AdjGraph.h"
#include "Sort/InsertSort.h"
#include "Search/LinklistSearch.h"
#ifndef DATASTRUCT_TOOLS_H
#define DATASTRUCT_TOOLS_H
#define true 1
#define false 0
void testFp();
#ifndef DEBUG
#define DEBUG
void printDebug();
#endif
/*
//计时用
int start = clock();
for (int i = 0; i < 1102111100; ++i) {
}
int end = clock();
*/
//产生一个随机整数 范围minVal-maxVal
int randint(int minVal, int maxVal);
//测试交换指针表变量
void testSwap();
void readFile();
//读取文件的数据
void readData();
//冒泡排序
void bubbleSort(int a[], int n);
void printToFile(char *fname, ElemType *arr, int arrLen);
void testRand();
void swap(int *a, int *b);
void printArr(ElemType *arr, int len);
#endif //DATASTRUCT_TOOLS_H