Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

More bytes allocated to a variable in C++?

Name: Ekce 2006-01-28 18:33

Hey, I started programming in C++, and I was wondering if there was a way to assign a variable X amount of bytes. 8 bytes is just not enough. I will mainly be using integers.

Name: Anonymous 2006-01-28 23:46

>>4
Size of an int type is defined in limits.h (I think) and is defined by your compiler to usually be the size of two words.  Four bytes usually when compiling for 32-bit processors.

If you want to hold 128B per variable, again I think you're better off using a wrapper class for a pseudo 128 byte int class that's really a fixed char array inside.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List