View Single Post
Old 09-21-2007, 05:21 AM   #4 (permalink)
Jinn
Lover - Protector - Teacher
 
Jinn's Avatar
 
Location: Seattle, WA
What compiler are you using?

My only guess is you're using one that (oddly) doesn't support multiple variable initialization on the same line. If dHotel isn't getting initialized to 0, then you could see this problem.

Try putting double dHotel = 0.0; on its own line.

Additionally, is there a reason for using doubles, rather than floats? Save yourself a little bit of memory.
__________________
"I'm typing on a computer of science, which is being sent by science wires to a little science server where you can access it. I'm not typing on a computer of philosophy or religion or whatever other thing you think can be used to understand the universe because they're a poor substitute in the role of understanding the universe which exists independent from ourselves." - Willravel
Jinn is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73