CS 132 – Project 5: Movie Database
Due: Friday, December 15th, 2006 11:59pm
For this assignment you will be creating a database for a user to keep track of his or her movies. Each record will be part of a linked list, and you will need to support various operations on the database.
The record will look like:
Title: |
String (max 200) |
Director: |
String (max 100) |
Year: |
Int |
Stars: |
String (max 1000, comma separated list) |
Rating: |
String (max 5) (G, PG, etc.) |
You will present the user with a menu when the program is run. The menu will allow various operations:
Entering a record manually is self-explanatory.
Loading and saving a database involves writing each record to a file, one line per field, with a blank line between records, and being able to load a similarly formatted file.
The display function should be self-explanatory as well.
For finding a record, you should support a simple textual search on title, stars, year, or director. Support partial matches. Look into the function strstr() to help you.