Einzelnen Beitrag anzeigen

Alaitoc

Registriert seit: 24. Okt 2008
263 Beiträge
 
Delphi 7 Enterprise
 
#2

AW: Von C nach D?

  Alt 30. Sep 2011, 07:53
Code:
 
    struct Flags
    {
      unsigned int Online :1;  
      unsigned int Mounted :1;
    }
Zitat:
The :1 tells the compiler that only 1 byte is required for Online and Mounted. There are a few points to note about this though.
Quelle

Also es sagt einfach nur aus das die Länge begrenzt wird, weil man ja für TRUE/FALSE keine ewig langen Variablen brauch

MfG Alaitoc
  Mit Zitat antworten Zitat