Solved

please help!!!!

Posted on 1998-05-17
1
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

735 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