forked from sunio00000/BeeTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput_Console.c
More file actions
28 lines (26 loc) · 2 KB
/
Input_Console.c
File metadata and controls
28 lines (26 loc) · 2 KB
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
void Input_Console(int treeAvailable)
{
printf("\n┌─────────────────────────────────────────────────────────────┐");
printf("\n│ Welcome to the world of B-Tree!! │");
printf("\n├─────────────────────────────────────────────────────────────┤");
printf("\n│ --- Select a menu --- │");
if (treeAvailable == 0)
{
printf("\n│ Tree is [ONLINE] │");
}
else
{
printf("\n│ Tree is [OFFLINE] │");
}
printf("\n│ 1. Make a Tree │");
printf("\n│ 2. Insert a number in the Tree │");
printf("\n│ 3. Delete a number in the Tree │");
printf("\n│ 4. Search a number in the Tree │");
printf("\n│ 5. Print the Tree │");
printf("\n│ 6. Delete the Tree │");
printf("\n│ 7. Help │");
printf("\n├─────────────────────────────────────────────────────────────┤");
printf("\n│ Designed by TrueSunDragon │");
printf("\n│ copyright(c) 2021 All rights reserved │");
printf("\n└─────────────────────────────────────────────────────────────┘");
}