Cpp/Exámenes Resueltos (Segundo Semestre)/June2017I/DateList.h

31 lines
515 B
C
Raw Normal View History

2019-06-20 13:06:16 +02:00
#ifndef _DATELIST
#define _DATELIST
#include "ClientList.h"
//Constant:
//Types:
typedef struct tDate {
tClient *client1, *client2;
std::string place;
int ratting;
};
typedef struct tDateList {
tDate *date; //Sorted by rating.
int cont, capacity;
};
//Functions:
void newList(tDateList& list);
void insert(tDateList& list, tDate& date); //If there are no more free slots add 10 more slots.
void display(tDateList& list);
void free(tDateList& list);
#endif // !_DATELIST