- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Unsigned long int getset (void)
{unsigned long int a; int k; h=0;
While (‘<не конец файла>==<читать число в k>’);
{switch k
{case 1: h = h/0x 0001; break;
case 2: h = h/0x 0002; break;
case 3: h = h/0x 4; break;
case 4: h = h/0x 8; break;
case 5: h = h/0x 10; break;
case 6: h = h/0x 20; break;
case 7: h = h/0x 40; break;
case 8: h = h/0x 80; break;
…
case 30: h = h/0x 2000 0000; break;
case 31: h = h/0x 4000 0000; (- 1 на 31 месте) break;
case 32: h = h/0x 8000 0000; (- 1 на 32 месте) break;
}
}
return (h)
}