Unlike Java or C#, primitive data types in C++ can vary in size depending on the platform. For example, int is not guaranteed to be a 32-bit integer. Various compi
int
I found this header particularly useful: BOOST cstdint
Usually better than inventing own wheel (which incurs the maintenance and testing).