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; }