目的是 tot = (tot - num + debt[i])

一不小心就写成这样了:

tot -=  num + debt[i];

应该是这样的:

tot = tot - num + debt[i];

代码可是看了很久,才找到错误的,细节决定成败啊;纪念下!!!   

相关文章:

  • 2022-02-22
  • 2021-06-18
  • 2021-08-17
  • 2021-06-08
  • 2022-01-02
  • 2021-12-28
  • 2022-03-03
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2022-02-08
  • 2021-06-05
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案