- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
switch (sum_l)
{
case 0x00: sum_l = '0'; break;
case 0x01: sum_l = '1'; break;
case 0x02: sum_l = '2'; break;
case 0x03: sum_l = '3'; break;
case 0x04: sum_l = '4'; break;
case 0x05: sum_l = '5'; break;
case 0x06: sum_l = '6'; break;
case 0x07: sum_l = '7'; break;
case 0x08: sum_l = '8'; break;
case 0x09: sum_l = '9'; break;
case 0x0A: sum_l = 'A'; break;
case 0x0B: sum_l = 'B'; break;
case 0x0C: sum_l = 'C'; break;
case 0x0D: sum_l = 'D'; break;
case 0x0E: sum_l = 'E'; break;
case 0x0F: sum_l = 'F'; break;
}
switch (sum_h)
{
case 0x00: sum_h = '0'; break;
case 0x01: sum_h = '1'; break;
case 0x02: sum_h = '2'; break;
case 0x03: sum_h = '3'; break;
case 0x04: sum_h = '4'; break;
case 0x05: sum_h = '5'; break;
case 0x06: sum_h = '6'; break;
case 0x07: sum_h = '7'; break;
case 0x08: sum_h = '8'; break;
case 0x09: sum_h = '9'; break;
case 0x0A: sum_h = 'A'; break;
case 0x0B: sum_h = 'B'; break;
case 0x0C: sum_h = 'C'; break;
case 0x0D: sum_h = 'D'; break;
case 0x0E: sum_h = 'E'; break;
case 0x0F: sum_h = 'F'; break;
}
p.s. true story.
пока сам не увидел, был уверен, что такого не бывает.