Solved

please help!!!!

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now