Hello, everyone.
I thought a lot about increasing the range of integer manually (The longlongint is not enough). But I don't find a way. I tried to use BIT-FIELDS, but I can't find a way to assign the value. See this please-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <bits/stdc++.h>
usingnamespace std;
struct A{
unsigned a : 9999999;
};
int main()
{
A range;
range.a = 9999999999999999;
cout << range.a; // printing garbage value
return 0;
}
It is printing some stupid value! Can I increase the range this way? Or is there any other way that I can manually elevate the range like BigInteger in Java? There is of course a way I guess.