Mailinglist Archive: opensuse-programming-de (158 mails)

< Previous Next >
Re: C++ -> einzelne Bits aus Datei lesen
  • From: Andre Heine <linux-experience@xxxxxxx>
  • Date: Fri, 16 May 2003 20:37:20 +0200
  • Message-id: <200305162037.20959.linux-experience@xxxxxxx>
Am Friday 16 May 2003 19:05 schrieb Andre Heine:


Fehler, besser "unsigned char" :)

> typedef struct {
> char bit0 : 1;
> char bit1 : 1;
> char bit2 : 1;
> char bit3 : 1;
> char bit4 : 1;
> char bit5 : 1;
> char bit6 : 1;
> char bit7 : 1;
> } t_Bit;
>
>
> typedef union {
> char base;
> BitTyp field;
> } t_BitUnion;


< Previous Next >