-
Notifications
You must be signed in to change notification settings - Fork 0
/
City.h
31 lines (27 loc) · 885 Bytes
/
City.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __CITY__
#define __CITY__
#include "Kindergarten.h"
#include "General.h"
#define TEXT_DATA_FILE "DataFile.txt"
#define BINARY_DATA_FILE "DataFile.bin"
typedef struct
{
Garden** pGardenList;
int count;
}City;
LIST* createLinkedListForKindergartenType(City* city, GardenType type);
void displayKindergartensFromList(LIST* list);
void makeLinkedList(City* pCity);
void readCity(City* pCity, int fileType);
void showCityGardens(City* pCity);
void showSpecificGardenInCity(City* pCity);
void saveCity(City* pCity,int fileType);
void cityAddGarden(City* pCity);
void addChildToSpecificGardenInCity(City* pCity);
void birthdayToChild(City* pCity);
void releaseCity(City* pCity);
void sortBy(City* city, int sortType);
int countChova(City* pCity);
int cmpByType(void* garden1, void* garden2);
int cmpByName(void* garden1, void* garden2);
#endif