![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Given a means to obtain specific character codes, you can replace
industry-denoting enumeration constants in the industry_name
function with specific character codes:
char* industry_name (struct trade *t) { switch (t -> description[0]) { case 'F': return "Food"; break; ... } }