achhhhhhh
This commit is contained in:
parent
0edab5145b
commit
66e7bf7fad
@ -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;i<station->track_count;i++){
|
||||
struct car* newCar= station->tracks[i];
|
||||
while (newCar->value!=NULL)
|
||||
{
|
||||
count+=1;
|
||||
newCar=newCar->next;
|
||||
}
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user