Count cap
This commit is contained in:
parent
345d2a79e5
commit
c7fca6e06e
@ -95,6 +95,12 @@ int count_targets(struct station* station){
|
||||
}
|
||||
|
||||
int count_capacity(struct station* station){
|
||||
return 0;
|
||||
int res = 0;
|
||||
struct car* ptr = *station->tracks;
|
||||
while (ptr){
|
||||
res += ptr->capacity;
|
||||
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user