Solved

please help!!!!

Posted on 1998-05-17
1
175 Views
Last Modified: 2010-04-10
iam just a starter in C++,  can anyone please show me how to contruct the following program:


A futuristic PC has terabytes of data store and is used (amongst other things) to store music on it. Your task is
           to write a simple interface to the database of CD music tracks contained in it. The music is arranged as a
           collection of CD singles. For each item of music the following information is kept:

                char CDTitle[30]; // Name of original CD track from
                char author[30]; // Band/Author of original CD
                char trackName[40]; // title of track on CD
                char songwriter[30]; // Author of music&lyrics
                float duration; // time to play track
                char comments[30]; // optional notes

           You are to create a linked list of CD tracks. The following commands are to be supported in the application:

           n - display next track

           b - go to beginning of list and display 1st track

           a - add track to list at current list position

           d - delete track, at current position, from list

           s - save list of tracks to disk file

           r - read tracks from disk file and display first track

           h - help, get descriptions of commands and what they do

           When the application is first run, the list of CD tracks is read from your default input file, CDsingle.dat, and the
           first record displayed. The format for display is shown below:

           CD Singles Collection

           CD Title: Earthspan

           Band/Author: Incredible String Band

           Track Name: My father was a lighthouse keeper

           Songwriter: LeMaistre

           Duration: 4.25

           Notes: An old favourite

           n next; b beginning; e end; a add; d delete;

           s file save; r file read; h help

           Options: n b e a d s r h

           Please enter option:_
0
Comment
Question by:anhthu
1 Comment
 
LVL 10

Accepted Solution

by:
RONSLOW earned 100 total points
ID: 1162812
This sounds like a homework assignment.

Experts at EE will NOT do your homework for you.

If you make an attempt at doing it yourself, and run into problems, then we will help you with those particular problems.

If this is a genuine non-homework problem and/or you have made a start at this, then please reject this answer so we can help you.

0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question