资 源 简 介
(3) You have been hired to maintain telephone records for a company. A customer file is maintained with current data about each phone subscriber, including their name, phone number, and address. The data includes a name (30 characters), a phone number (10 digits), a street address (40 characters), a city (30 characters), a state (2 characters) and a zip code (5 digits). A user may add a new customer or search by name or phone number.
(4) Calling data will also be kept and should use an inverted list to index by phone number. A call consists of a 12-digit date/time (YYYYMMDDhhmm, such as 201203251330 for 1:30 p.m. on 3/25), a 10-digit caller, a 10-digit callee, and a duration in minutes. The user may add a call, request all calls between two dates and, possibly, between two phone numbers. For efficiency, this suggests an inverted list index for both caller and callee.
Your program must support fast searching for names and phone numbers using a combination of extend