-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITA.c
73 lines (70 loc) · 1.24 KB
/
ITA.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
67
68
69
70
71
72
char ITA2L(int combination_number)
{
if (!(combination_number >= 1 && combination_number <= 32))
return ' ';
if (combination_number <= 26)
return 'A' + combination_number - 1;
switch (combination_number)
{
case 27:
return '\r';
case 28:
return '\n';
case 31:
return ' ';
default:
return ' ';
}
}
char ITA2F(int combination_number)
{
if (!(combination_number >= 1 && combination_number <= 32))
return ' ';
switch (combination_number)
{
case 1:
return '-';
case 2:
return '?';
case 3:
return ':';
case 5:
return '3';
case 9:
return '8';
case 10:
return '\007';
case 11:
return '(';
case 12:
return ')';
case 13:
return '.';
case 14:
return ',';
case 15:
return '9';
case 16:
return '0';
case 17:
return '1';
case 18:
return '4';
case 20:
return '5';
case 21:
return '7';
case 22:
return '=';
case 23:
return '2';
case 24:
return '/';
case 25:
return '6';
case 26:
return '+';
default:
return ' ';
}
}