Solved

please help!!!!

Posted on 1998-05-17
1
178 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dialogbox API leak? 18 119
Path to  STL Map header file 1 91
maximize the sum of fractions 33 76
Need some help with design 17 48
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 clear a vector as well as how to detect empty vectors in C++.

751 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