J
Jo Deni
Folks,
I'm a newbie here (and with C++).
While executing a C++ program I'm getting the following
message
error: integer constant is too large for "long" type
and here is the offending line in my code
double X = 10000000000;
(X is equal to 10^10)
The execution for X = 10^9 worked fine.
So what can I do to fix the problem?
Thanks,
Jo
I'm a newbie here (and with C++).
While executing a C++ program I'm getting the following
message
error: integer constant is too large for "long" type
and here is the offending line in my code
double X = 10000000000;
(X is equal to 10^10)
The execution for X = 10^9 worked fine.
So what can I do to fix the problem?
Thanks,
Jo