Hi,
Since this is the first time for me using fixed size arrays, i would appreciate some guidance to solve this question.
First of all, these structures are to be used:
struct song
{
char *name;
unsigned int minutes;
unsigned int seconds;
};
struct idtag
{
struct song *song;
unsigned int year;
unsigned int month;
unsigned int day;
char *artist;
char *album;
};
question is:
Read from stdin and populate a fixed sized array
(not alinked list) of idtags. Write the contents to stdout
upon request.
Since this is the first time for me using fixed size arrays, i would appreciate some guidance to solve this question.
First of all, these structures are to be used:
struct song
{
char *name;
unsigned int minutes;
unsigned int seconds;
};
struct idtag
{
struct song *song;
unsigned int year;
unsigned int month;
unsigned int day;
char *artist;
char *album;
};
question is:
Read from stdin and populate a fixed sized array
(not alinked list) of idtags. Write the contents to stdout
upon request.
Comment