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:
Anonymous2006-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.