Groovy hepcat Lee Kirby jived with All on 23 Dec 97 16:57:42!
Extra bytes's a cool scene. Dig it!
LK> I'm very new to C++, and can't figure out why I get two extra bytes
LK> when I write this structure to a file:
Structures can be "padded" with extra bytes for allignment purposes.
When you define a structure, there's no guarantee that the compiler
will "pack" it, ie. cause all members to be contiguous within the
structure. Some data types are more efficient if alligned to word or
double word boundaries. This depends on both the platform and the data
type.
Wolvaen
... All reality is aspect dependent.
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 33.6k (3:633/159)
|