forked from Joao-Maria-Janeiro/WarmingUp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.h
58 lines (46 loc) · 1023 Bytes
/
structs.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _STRUCTS_H
#define _STRUCTS_H
typedef struct{
int dia;
int mes;
int ano;
} data;
typedef struct{
float angular;
char direcao;
} geo_coord;
typedef struct{
data dt;
float temperatura;
float incerteza;
char pais[400];
}dados_country;
typedef struct{
data dt;
float temperatura;
float incerteza;
char pais[400];
char cidade[400];
geo_coord latitude;
geo_coord longitude;
}dados_city;
typedef struct node{
dados_country payload;
struct node *next;
struct node *prev;
} node_t_country;
typedef struct node_city{
dados_city payload;
struct node_city *next;
struct node_city *prev;
} node_t_city;
typedef struct node_auxYear{
int ano;
node_t_country *head;
node_t_country *tail;
struct node_auxYear *next;
struct node_auxYear *prev;
} node_t_auxYear;
void loadCountryFromFile(char [], node_t_country **, node_t_country **);
void loadCityFromFile(char [], node_t_city **, node_t_city **);
#endif