Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7
This is the forum to discuss the Wrox book Beginning Linux Programming, 4th Edition by Neil Matthew, Richard Stones; ISBN: 9780470147627
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2014, 02:23 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The CD application using DBM

The confusion is from book Beginning Linux Programming by Neil Mathew and Richard Stones.

In the book using DBM they have taught how to bulid a CD application to store CD data. They have used two structs one for storing CD catalog entry and one for storing CD tracks entry.The structs are as below:

Code:
/* The catalog table */
#define CAT_CAT_LEN 30
#define CAT_TITLE_LEN 70
#define CAT_TYPE_LEN 30
#define CAT_ARTIST_LEN 70

typedef struct {
char catalog[CAT_CAT_LEN + 1];
char title[CAT_TITLE_LEN + 1];
char type[CAT_TYPE_LEN + 1];
char artist[CAT_ARTIST_LEN + 1];
} cdc_entry;

/* The tracks table, one entry per track */
#define TRACK_CAT_LEN CAT_CAT_LEN
#define TRACK_TTEXT_LEN 70
typedef struct {
char catalog[TRACK_CAT_LEN + 1];
int track_no;
char track_txt[TRACK_TTEXT_LEN + 1];
} cdt_entry;
Not exactly getting what a:

char catalog[CAT_CAT_LEN];

is meant for in cdc_entry structure As i thought earlier user will type name of the album in that field but title is there for that. Then what catalog field is meant for actually not getting. What i think of various fileds can have is:

title = name of the album(Reckless)

type = is like genere (POP, ROCK, HIPHOP)

artist = who sang the song (Bryan adams)

catalog = ?(for what this field)

If anyone has been through this book and got what this field(catalog) should actually store.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Need CD gemini9999 BOOK: Beginning Access VBA 0 November 29th, 2006 07:29 PM
Broken CD ajb963 BOOK: Beginning Access VBA 19 October 28th, 2006 07:07 PM
broken cd waz84792 Flash (all versions) 5 October 22nd, 2004 08:42 AM
CD-R and CD -RW info wwwdirzala Beginning VB 6 0 May 4th, 2004 04:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.