bool a ;
bool b ;
bool c ;
All the attributes are Boolean arrays. I have to pack them to reduce space. Is it possible in C++? (I know it is possible in ADA.) If so, can you please let me know how I can achieve that?
In Visual C++ and Win32 development, these Boolean values will take up four bytes a piece. If you need to pack the data, you're much better off looking at a bit field representation.
This was first published in February 2003