-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
48 lines (42 loc) · 1.13 KB
/
main.c
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
#include <stdio.h>
#include "Logica/header.h"
#include "Interfaz/Interfaz.h"
int main(){
address addresses[30];
int log_cant = 15;
int select = 0;
float x, y;
int far_address;
initial_data(addresses);
printf("Welcome :)\n");
while (select != 7) {
select = selection();
switch (select){
case 1:
print_addresses(addresses, log_cant);
break;
case 2:
show_if_has_number(addresses, log_cant);
break;
case 3:
add_point(&x, &y);
far_address = euclidean_distance(addresses, log_cant, x, y);
show_farthest_address(addresses, far_address, x, y);
break;
case 4:
print_empty_secondary_address_count(addresses, log_cant);
break;
case 5:
atleast_5addresses(addresses, log_cant);
break;
case 6:
log_cant = add_address(addresses, log_cant);
break;
default:
break;
}
system("pause");
system("cls");
}
return 0;
}