main
This commit is contained in:
parent
3bd0866264
commit
05452b2a66
@ -61,11 +61,11 @@ void test_station(struct station* station){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
|
|
||||||
struct station* station = create_station();
|
struct station* station = create_station();
|
||||||
//test_station(station);
|
|
||||||
printf("Zadajte stanicu na pridanie do zoznamu:\n");
|
printf("Zadajte stanicu na pridanie do zoznamu:\n");
|
||||||
|
|
||||||
|
////////////////////////////
|
||||||
|
|
||||||
char add[30];
|
char add[30];
|
||||||
fgets(add, 30, stdin);
|
fgets(add, 30, stdin);
|
||||||
add[strlen(add)-1] = '\0';
|
add[strlen(add)-1] = '\0';
|
||||||
@ -76,7 +76,12 @@ int main(){
|
|||||||
cap[strlen(cap)-1] = '\0';
|
cap[strlen(cap)-1] = '\0';
|
||||||
int n = atoi(cap);
|
int n = atoi(cap);
|
||||||
add_target_capacity(station,add,n);
|
add_target_capacity(station,add,n);
|
||||||
|
|
||||||
|
/////////////////////////////
|
||||||
test_station(station);
|
test_station(station);
|
||||||
|
int c_targets = count_targets(station);
|
||||||
|
printf("Aktualne existuju %d stanic\n", c_targets);
|
||||||
|
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
print_station(station);
|
print_station(station);
|
||||||
|
Loading…
Reference in New Issue
Block a user