-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflats.h
36 lines (30 loc) · 901 Bytes
/
flats.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
#ifndef FLATS_H
#define FLATS_H
#define size 100
extern const char dataset[50];
extern int current;
// Struct for owner information
typedef struct {
char name[50];
char o_info[50];
float paid;
float bal;
float due;
char date[50];
}Owner;
//Struct for flat information
typedef struct {
char ID[10];
char type[10];
int price;
char status[15];
Owner *owner;
}flat;
//extern is used to interlink the global variables from file to file, in this case, this is declared in our dsa.c file
extern flat residence[size]; //saving all the flat struct inside residence array...
//ifndef, define and endif are called as Guards... they're used to make sure the header files are not defined multiple times
//ifndef = if not defined
//define = (continuing the last line, if not defined, then define it now...)
//endif = ending of the guard
#endif
//ver 2.1.0 stable