Open main menu

CDOT Wiki β

The Application - OOP344 20123

Revision as of 14:00, 29 November 2012 by Fardad (talk | contribs)

Movie Browser

Your task for the final application is to create a movie record browser using the CIO library.

the file

The data file to store the movie records is in binary format.
Records are kept in the following format:

//class Movie{
struct Movie{
  char name[71];
  char actors[301];
  char desc[1656];
  char releaseDate[11];
  unsigned long genre;
  unsigned long rating;    
};

Selecting data file

There are two choices to select a data file to browse:

  1. Getting the file name through he command line argument list.
  2. Getting the file name thourgh a prompt within the program.

Application Capabilities

Mandatory

90%
  1. Browse Opened data file
    1. goto next record
    2. goto previous record
    3. goto last record
    4. goto first record
    5. goto record by number
  2. edit the record
    1. save the edited record
    2. cancel editing a record without saving
    3. make sure edit information is not lost (saving unsaved data on exit with prompt)

Optional

100% and up
  1. Search
    to be able to narrow down the list of movies to the ones which fit to the search criteria
    1. Search on name on substring
    2. Search on actor's name on substring
    3. Search on the Date on exact match