-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathControl.c
66 lines (48 loc) · 1.4 KB
/
Control.c
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
59
60
61
62
63
64
65
66
#include "Header.h"
#include "Structs.h"
void addCarOwner(int num, carOwner* owners ) {
printf("\nName: ");
scanf_s("%s", owners[num].name, N);
printf("\nSurname: ");
scanf_s("%s", owners[num].surname, N);
printf("\nName: ");
scanf_s("%s", owners[num].middlename, N);
printf("\nName: ");
scanf_s("%s", owners[num].phoneNumber, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.country, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.aread, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.distict, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.city, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.street, N);
printf("\nName: ");
scanf_s("%s", owners[num].adress.house, N);
printf("\nName: ");
scanf_s("%d", &owners[num].adress.flat, 4);
printf("\nName: ");
scanf_s("%s", owners[num].carBrand, N);
printf("\nName: ");
scanf_s("%s", owners[num].carNumber, N);
printf("\nName: ");
scanf_s("%lld", &owners[num].technical_passport_number, N);
}
//void deleteCarOwner(int, carOwner*) {
//
//}
//
//void editCarOwner(int, carOwner*) {
//
//}
void displayCarOwner(int num, carOwner* owners) {
printf("%s %s %s", owners[num].name, owners[num].surname, owners[num].middlename);
}
//void displayAllCarOwners(int, )
//
//int menu() {
//
// return scanf_s("%d");
//}