dimensioni di integer
è 4, long long int
è di 8 byte e può accedere a circa 19 cifre dati e per unsigned long long int size anche 8 byte ma handle valore maggiore di long long int ma questo è inferiore a 20 cifre. Esiste un modo per gestire più di 20 cifre.come gestire i dati interi di grandi dimensioni più di 8 o più di 20 cifre in C++
#include<iostream>
using namespace std;
int main()
{
unsigned long long int a;//any data type more than 8 byte can handle
cin>>a;
if(a>789456123789456123123)//want to take a higher thand this digits
{
cout<<"a is larger and big data"<<endl;
}
}
ho cercato su di esso per un po ', ma non ha trovato utile contents.All circa è java biginteger
.
[GMP] (https://en.wikipedia.org/wiki/GNU_Multiple_Precision_Arithmetic_Library) possono essere di interesse. –