Add files via upload
This commit is contained in:
30
Exámenes Resueltos (Segundo Semestre)/June2017I/DateList.h
Normal file
30
Exámenes Resueltos (Segundo Semestre)/June2017I/DateList.h
Normal file
@ -0,0 +1,30 @@
|
||||
#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
|
Reference in New Issue
Block a user