Serial number storing
-
What is the best way to store 1000000 serial number of 6 numbers? What type should i use? /\|-||\/|/\|)
-
What is the best way to store 1000000 serial number of 6 numbers? What type should i use? /\|-||\/|/\|)
Halawlaws wrote: 1000000 serial number of 6 numbers an array of 1,000,000 elements of 6 digit each? __int16 is too short so __int32. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
-
Halawlaws wrote: 1000000 serial number of 6 numbers an array of 1,000,000 elements of 6 digit each? __int16 is too short so __int32. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
From the msdn website: "Note that the __int8 data type is synonymous with type char, __int16 is synonymous with type short, and __int32 is synonymous with type int". However, if you use MS VC++ on windows, the max integer value you can use with int is 32,767 if signed or twice that if unsigned. What you need is a long int that can take 2,147,483,647 or twice that if unsigned. If you need bigger values then __int64 works... partially... there seems to be a whole lot of things that are not supported for that data type in C++ but seem to work fine in C. Cheers
-
From the msdn website: "Note that the __int8 data type is synonymous with type char, __int16 is synonymous with type short, and __int32 is synonymous with type int". However, if you use MS VC++ on windows, the max integer value you can use with int is 32,767 if signed or twice that if unsigned. What you need is a long int that can take 2,147,483,647 or twice that if unsigned. If you need bigger values then __int64 works... partially... there seems to be a whole lot of things that are not supported for that data type in C++ but seem to work fine in C. Cheers