Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

please help!!!!

Posted on 1998-05-17
1
Medium Priority
?
181 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

783 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