Labs 1 Spring 2001

Simple Database Problem

10 points

Create an Access database with a single table that will hold objects of the type CD described below. Write a program to add, delete and update members of this database. Since this is a tiny database, display all accounts in a listbox in the main form.

classCD
{
public: 
//Left to you. You will need to add a CD, delete a CD, correct information about the CD (title, artist, year) and display the current information in the Mainform.
private:  
	String _cdId;
	String _cdArtist;
	String _cdTitle;
	String _cdDescription;
	String  _cdPrice;
};

You should use the class defined below to create a string to display in the listbox. Use ArrayIterator to create the string.

class CDList :public Array<CD>
{
public: 
	String getDescription();
};