11/16/05 CISC105 Lecture Notes We looked at some of the sample code for project 3: http://copland.udel.edu/~pconrad/cisc105/05F/work/proj/proj3 In particular, in the file hiking.h: struct Hiking_S { char name[HIKING_TRAIL_NAME_LEN]; char location[HIKING_TRAIL_LOCATION_LEN]; double lengthInMiles; char state[HIKING_TRAIL_STATE_LEN]; int numTimesHiked; }; Terminology: =========== The fields numTimesHiked and lengthInMiles are called "scalars". They are scalars becuase they are NOT arrays. The other three fields: name, location, state are all arrays of char, that are located inside the struct. The five things in the struct: name, location, lengthInMiles, state, numTimesHiked are all called "members" of the struct, or "fields" in the struct