-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.h
55 lines (47 loc) · 798 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
typedef struct Product {
int id;
char name[30];
float cost;
float tax;
float expenseOperational;
float lucrativity;
float priceSale;
int quantity;
} Product;
typedef struct Purchase {
int invoice;
char date[30];
int idProduct;
float costPrice;
float tax;
int quantity;
float value;
} Purchase;
typedef struct Sale {
int invoice;
char date[30];
int idProduct;
float priceSale;
float tax;
int quantity;
float value;
} Sale;
typedef struct Company {
char cnpj[14];
char name[50];
char city[30];
} Company;
typedef struct Client{
char name[30];
char city[30];
char cpf[11];
} Client;
typedef struct Invoice{
int code;
} Invoice;
typedef struct Node {
Product product;
struct Node* left;
struct Node* right;
int height;
} Node;