Q: 41 C: Program Files prc885 ~ 1.cpp
range
41 integer constant in C: Program prc885 ~ 1.cpp
warning: integer is so large that getting these errors for variables unsigned
I N11 to N15. I set them as long long int, why would they still do?
I am using Bloodshed Dev C + + version 4.
Best Answer: I haven't played around with Vectors too much, but in your 'if' statement and the three lines under that, you're trying to use 'v' as an array by writing things like 'v[minIndex]'. If you want to access elements in a vector, try using the 'get()' method. It would look something like 'v.get(minIndex)'.
In order for that to work though, you'll need to make the Vector 'v' an Integer Vector. Just change your constructor to:
Vector<Integer> v = new Vector<Integer>();
Hope that helps!
How to create an iPhone or iPad Apps and Games succeed in App Store!
Re:Using doubles isn't a good idea because it'll be imprecise. Instead of dividing by ridiculously big numbers, divide by reasonable numbers (e.g. 1 billion) multiple times.
Hottest Self Help Sites On The Web!
Re:I think my problem here is that the Bloodshed compiler doesn't like the size of 1000000000000000.
Fundamentals of Thai Grammar
Re:long long int isn't guaranteed to be any particular size other than bigger than or equal to the size of a long int.
Low Risk Bets For Long Term Profits.
Re:I just tried this using VC 6.0
I changed your long long int to double.
Then at each calculation, I typecasted the result to an int
n15 = (int) (x / 1000000000000000) % 10;
Compiled fine
Shortcode Kid WordPress Plugin
Re:Originally posted by: guy
Look at the number you are using to divide X by.
You may need to recast it to a long long int.
I just tried that, didn't work, any other suggestions? Pleases?
Mind Power Special Reports (Newly Revamped!
Re:Look at the number you are using to divide X by.
You may need to recast it to a long long int.
0 Comments.