-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
45 lines (34 loc) · 1022 Bytes
/
main.cpp
File metadata and controls
45 lines (34 loc) · 1022 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
//#include "linear_list/SequenceList.h"
//#include "linear_list/LinkListWithHead.h"
//#include "stack/LinkStackWithHead.h"
//#include "queue/SequenceQueue.h"
//#include "queue/LinkQueueWithHead.h"
//#include "stack/InfixToPostfix.h"
//#include "string/SString.h"
#include "sort/RadixSort.h"
int main() {
system("chcp 65001");
// InteractiveMenu4StaticSqList();
// InteractiveMenu4DynamicSqList();
// InteractiveMenu4LinkListWithHead();
// InteractiveMenu4SqStack();
// InteractiveMenu4LinkStackWithHead();
// InteractiveMenu4SqQueue();
// InteractiveMenu4LinkQueue();
// InfixToPostfixMain();
// text();
int arr[] = {170, 45, 75, 90, 802, 24, 2, 66};
int n = sizeof(arr) / sizeof(arr[0]);
printf("Original array: \n");
for (int i = 0; i < n; i++) {
printf("%d ", arr[i]);
}
printf("\n");
radixSort(arr, n);
printf("Sorted array: \n");
for (int i = 0; i < n; i++) {
printf("%d ", arr[i]);
}
printf("\n");
return 0;
}