2010-09-15, 07:49 PM
yeah i tried using that code and it acted up wierd. i put in
5555 4000
4000 5555
10000 9999
9999 10000
1000 1000
and got
4000 - 5555 = -18445
5555 - 4000 = 1555
9999 - 10000 = 9999
10000 - 9999 = 00001
1000 - 1000 = 0000
im not terribly worried about the 0's. I need to get this part working and then focus on lesser problems
also, should note, the last one isnt returning 0. Dont know whether its returning 1 or -1, but its not 0.
mine was getting the two 10000 and 9999's right, but everything else returned the same.
yeah, its just returning -1 for everything. huh
5555 4000
4000 5555
10000 9999
9999 10000
1000 1000
and got
4000 - 5555 = -18445
5555 - 4000 = 1555
9999 - 10000 = 9999
10000 - 9999 = 00001
1000 - 1000 = 0000
im not terribly worried about the 0's. I need to get this part working and then focus on lesser problems
also, should note, the last one isnt returning 0. Dont know whether its returning 1 or -1, but its not 0.
mine was getting the two 10000 and 9999's right, but everything else returned the same.
yeah, its just returning -1 for everything. huh

