Type | Bytes | range of values
-------------------------------------------------------------------------------
int 4 –2,147,483,648 to 2,147,483,647
unsigned int 4 0 to 4,294,967,295
-------------------------------------------------------------------------------
main problem is that you CANT have a 20 digit INT, what u need is either a __int64 (long long) or an unsigned __int64 (unsigned long long) these allow –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 and 0 to 18,446,744,073,709,551,615 respectivly as they are 8 byte,
that or choose another way to store them (maybe as a text value, as there is a c++ function to convert btw text and numbers (or just write your own))
2006-10-18 06:29:06
·
answer #1
·
answered by icelotuskun 3
·
0⤊
0⤋
integers have a range which they work in I think 20 characters
eg 100000000000000000000 is out of the range of an integer. Try floats I am not sure how much they hold or use strings then convert them into ints.
Also why does your array have 20 elements isnt it suposed to be 2 elements 20 char long each? maybe i dont get the question.
2006-10-18 06:22:50
·
answer #2
·
answered by tru_story 4
·
0⤊
0⤋