目的是 tot = (tot - num + debt[i])
一不小心就写成这样了:
tot -= num + debt[i];
应该是这样的:
tot = tot - num + debt[i];
代码可是看了很久,才找到错误的,细节决定成败啊;纪念下!!!
目的是 tot = (tot - num + debt[i])
一不小心就写成这样了:
tot -= num + debt[i];
应该是这样的:
tot = tot - num + debt[i];
代码可是看了很久,才找到错误的,细节决定成败啊;纪念下!!!
转载于:https://www.cnblogs.com/submarinex/archive/2010/04/20/1941260.html