Question Should we set the array to "empty" before inserting? 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Assignment #5, due Monday 30 October (Mike O'Donnell)
Date: 2000, Oct 29
From: Oliver Rothschild <oqroths@midway.uchicago.edu>

Before we begin inserting, should we set all fields of the Array of structs equal to "empty" or 0000000000 or whatever would be appropriate for the entry, or should we leave the array alone and begin entering data from scratch? If we do set all the items to "empty", it would be easier to insert (we could test whether "name" == "empty"), but it would be less efficient in the begining. What do you think? I wouldn't want to lose points for efficiency. Thank you.


Messages

1. Feedback Your choice, but I suggest a size parameter by Mike O'Donnell, 2000, Oct 29

to: "Should we set the array to "empty" before inserting?"