// property.h // Thanks to Bilashi for typing this in from the HR book #ifndef property_h #define property_h 1 typedef char String40[41]; struct DateType { int mo; int day; int yr; }; enum PropertyType {home, automobile, appliance, furniture, other}; enum HouseType {ranch, twoStory, split, condo}; enum ColorType { red, orange, yellow, green, blue, brown, purple, white, black}; enum CarType {sedan, staWagon, van, sports, offRoad, pickup}; enum ApplianceType {range, dishwasher, washer, dryer}; enum FurnitureType {sofa, table, chair, bed, desk, cabinet}; struct PropertyInfoType { // variant record DateType purchaseDate; int hundredsVal; PropertyType article; union { struct { HouseType style; int sqFeet; DateType dateBuilt; } house; struct { CarType style; ColorType color; } car; struct { ApplianceType kind; ColorType color; } appli; struct { FurnitureType kind; } furn; struct { String40 descrip; } oth; }; }; PropertyInfoType majorPossession[200]; #endif