From 05452b2a66221bab71456b66f6040ccce11603ae Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Mon, 30 Nov 2020 15:11:06 +0100 Subject: [PATCH] main --- cv6/main.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cv6/main.c b/cv6/main.c index ad8a969..b76b22f 100644 --- a/cv6/main.c +++ b/cv6/main.c @@ -60,12 +60,12 @@ void test_station(struct station* station){ fclose(fp); } -int main(){ - +int main(){ struct station* station = create_station(); - //test_station(station); printf("Zadajte stanicu na pridanie do zoznamu:\n"); + //////////////////////////// + char add[30]; fgets(add, 30, stdin); add[strlen(add)-1] = '\0'; @@ -76,8 +76,13 @@ int main(){ cap[strlen(cap)-1] = '\0'; int n = atoi(cap); add_target_capacity(station,add,n); + + ///////////////////////////// test_station(station); - + int c_targets = count_targets(station); + printf("Aktualne existuju %d stanic\n", c_targets); + + printf("\n"); print_station(station); printf("\n");