From 66e7bf7fad664599ffb57ea5818bcaa37613bdfb Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 10 Nov 2020 21:50:01 +0100 Subject: [PATCH] achhhhhhh --- cv6/a_station.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cv6/a_station.c b/cv6/a_station.c index 7f0529a..c2d6bd1 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -98,6 +98,16 @@ int count_targets(struct station* station){ } int count_capacity(struct station* station){ - return 0; + int count=0; + for(int i=0;itrack_count;i++){ + struct car* newCar= station->tracks[i]; + while (newCar->value!=NULL) + { + count+=1; + newCar=newCar->next; + } + } + + return count; }