C++: a scalable number class - bitset<1>* or unsigned char*
问题 I'm planning on creating a number class. The purpose is to hold any amount of numbers without worrying about getting too much (like with int, or long). But at the same time not USING too much. For example: If I have data that only really needs 1-10, I don't need a int (4 bytes), a short(2 bytes) or even a char(1 byte). So why allocate so much? If i want to hold data that requires an extremely large amount (only integers in this scenario) like past the billions, I cannot. My goal is to create