achhhhhhh

This commit is contained in:
Radovan Kofira 2020-11-10 21:50:01 +01:00
parent 0edab5145b
commit 66e7bf7fad

View File

@ -98,6 +98,16 @@ int count_targets(struct station* station){
} }
int count_capacity(struct station* station){ int count_capacity(struct station* station){
return 0; int count=0;
for(int i=0;i<station->track_count;i++){
struct car* newCar= station->tracks[i];
while (newCar->value!=NULL)
{
count+=1;
newCar=newCar->next;
}
}
return count;
} }