Код:
Код: Выделить всё
int another_byte;
int result;
result = byte_heap[0];
another_byte = byte_heap[1];
another_byte = another_byte но, сами понимаете, некрасиво, нерационально

подскажите, как это покрасивше сделать?
Код: Выделить всё
int another_byte;
int result;
result = byte_heap[0];
another_byte = byte_heap[1];
another_byte = another_byte 
Код: Выделить всё
typedef struct
{
WORD a, b;
DWORD c;
}somestuct
...
somestuct *data;
read( handle, data, sizeof(somestuct) ); // все поля заполнены
Код: Выделить всё
#pragma pack(1)
typedef struct
{
unsigned char a[2], b[2], c[4];
}somestuct;
#pragma pack()