Unfortunately, when you try to define industry_name
, using
display_industry_name
as a model, you do not know what the
return type should be:
what type here? industry_name (struct trade *t) { switch (t -> industry) { case food: return "Food"; break; case trucking: return "Trucking"; break; case computers: return "Computers"; break; case metals: return "Metals"; break; case health: return "Health"; break; case airline: return "Airline"; break; default: return "Unknown"; break; } }
Accordingly, it is time for you to learn about character strings.