-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_test.c
46 lines (35 loc) · 1.29 KB
/
main_test.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
#include <stdio.h>
#include <stdlib.h>
#include "shoot.h"
int main(int argc, char** argv)
{
FILE * input_file = NULL;
if(argc != 2)
{
printf("Usage ./program file_with_teams_and_coaches\n");
exit(0);
}
input_file = fopen(argv[1], "r");
if(!input_file)
{
fprintf(stderr, "Error: %s could not be read!\n", argv[1]);
exit(1);
}
read_entries(input_file);
fclose(input_file);
make_shoot_graph();
make_new_field_space("Arizona", 5, SIX, MONDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Iverson", 7, SIX, MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Arizona", 5, SIX_THIRTY, MONDAY | TUESDAY | THURSDAY | FRIDAY);
make_new_field_space("Iverson", 7, SIX_THIRTY, MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Arizona", 25, SEVEN_THIRTY, MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Iverson", 3, SEVEN_THIRTY, TUESDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Arizona", 4, EIGHT, MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY);
make_new_field_space("Iverson", 8, EIGHT, MONDAY | WEDNESDAY | FRIDAY | TUESDAY );
//print_field_info();
//print_subgraph_info();
print_team_node_info();
print_graph_representation();
cleanup_graph();
return 0;
}