Author: Stan Eisenstat
Subject: Re: [Cs223] Clarification on Hash ADT
Date: Saturday, 18 Apr 2020, 07:27:28
> Message Posted By: Unknown > > So to clarify the question asked in regards to defining structs in the > header file, we are allowed to define the triples in the header file to > access in our main c file, but not the Hash struct? Are we allowed to > typedef references to the struct to make new data types to declare our > tables? Yes, you may define the fields of a triple in the header file if you pass POSITION, REACHED_FROM, and NSTEPS to the insert() function as a triple. No, you may not specify the fields of the hash struct since that would constrain the implementation. Yes, you may use typedef to define new data types. --Stan-PREV INDEX NEXT