Skip to content
Snippets Groups Projects
datastructure.h 1.41 KiB
Newer Older
Wadi.T's avatar
Wadi.T committed
#ifndef DATASTRUCTURE_H_INCLUDED
#define DATASTRUCTURE_H_INCLUDED
#define MAXSONGS 30
Wadi.T's avatar
Wadi.T committed

/************************************************************************************************/
/*************************************Objects declaration****************************************/
/************************************************************************************************/

typedef struct sDate{
  int day;
  int month;
  int year ;
} sDate;

typedef struct sTime{
  int seconds;
  int minutes;
  int hours;
} sTime;

typedef struct sSong{
  char* title; 
  char* artist;  
  sTime duration;
} sSong;

typedef struct sCD{
  char* title;
  char* artist;
  unsigned int publicationYear;
  unsigned int numberOfSongs;
  sSong Songs[MAXSONGS];
} sCD;
Wadi.T's avatar
Wadi.T committed
/************************************************************************************************/
/***********************************functions declaration****************************************/
/************************************************************************************************/

void inputDate();

/************************************************************************************************/
/***********************************Externvariables****************************************/
/************************************************************************************************/
extern int countCDs;
extern sCD CDData[];
Wadi.T's avatar
Wadi.T committed

#endif // DATASTRUCTURE_H_INCLUDED