Mail Archives: djgpp/1999/12/28/16:13:34
That's because it differs from machine to machine, depending on the
compiler.... Use sizeof() in a little demo program to find out the sizes
are for your box. For instance, something similar to the following will
give you the values (in total bytes) of each type.
// begin code block
#include <iostream.h>
int main()
{
cout << "An integer holds " << sizeof(int) << " bytes of data.\n";
cout << "A short holds " << sizeof(short) << " bytes of data.\n";
// you get the picture, yes? ;)
return 0;
}
// end code block
Hope that helps.
.Tek
technophile AT email DOT com
Ghalos <greg AT holdridge7 DOT freeserve DOT co DOT uk> wrote
> really? Wotsit's Format gave me four bytes as the value...
>
> --
> Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk
> Wilmer van der Gaast wrote in message ...
> >On Wed, 22 Dec 1999, Ghalos wrote:
> >
> >> int flags;
> > ^^^
> >Btw. According to the FLI-specs in PCGPE this one should be two bytes,
> >not four.
- Raw text -