-
Notifications
You must be signed in to change notification settings - Fork 0
/
progect2 ghostbuster record UI.c
56 lines (55 loc) · 1.52 KB
/
progect2 ghostbuster record UI.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
#include<stdio.h>
#include<string.h>
#include<dataFormat.h>
void main()
{
EVENT_T enter;
char input[64];
enter.eventCode;
enter.date;
enter.time;
enter.typeOfEvent;
enter.investDate;
enter.investTime;
enter.reportPerson;
enter.phoneNumber;
enter.address;
enter.district;
enter.result;
printf("******* Record Event *******\n");
printf("\n");
printf("* EVENT CODE
t : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.eventCode);
printf("* DATE : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.date);
printf("* TIME : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.time);
printf("* TYPE OF EVENT : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.typeOfEvent);
printf("* INVESTIGATE DATE : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.investDate);
printf("* INVESTIGATE TIME : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.investTime);
printf("* REPORTER'S NAME : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.reportPerson);
printf("* REPORTER'S PHONE NUMBER : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.phoneNumber);
printf("* ADDRESS : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.address);
printf("* DISTRICT : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.district);
printf("* RESULT : ");
fgets(input,sizeof(input),stdin);
sscanf(input,"%s",enter.result);
}