Having Trouble With Class (Bronze) Challenge


#1

Does anyone have any suggestions for how to use conditionals for the town’s population? I’m completely stuck for what to do here.

I assume I have to represent…
“if there is a town and it’s population is > 0, decrement population, etc”

But I can’t use the population property from the town struct because it’s a value type. This challenge is giving me a lot of trouble as it seems like everything I try gives me an error. Any hints (not the full code) what be greatly appreciated. Thanks


#3

Withdrawn? Why is it going to be withdrawn?


#4

Because it looks like you already got your answer over on the other thread, so no need to discuss it here.