Skip to content
Snippets Groups Projects
datastructure.h 1.33 KiB
Newer Older
T.Wadi's avatar
T.Wadi committed
#pragma once

#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****************************************/
/************************************************************************************************/
T.Wadi's avatar
T.Wadi committed
extern const int countCDs;
Wadi.T's avatar
Wadi.T committed

T.Wadi's avatar
T.Wadi committed