2020春_c_19信网一些较好籍73679-_ppt幻灯片savitch_ch_03.pptVIP

  • 2
  • 0
  • 约3万字
  • 约 118页
  • 2021-03-14 发布于北京
  • 举报

2020春_c_19信网一些较好籍73679-_ppt幻灯片savitch_ch_03.ppt

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Slide 3- * Second Fix Re-testing the loop shows us that now the loop never multiplies by 5 The fix is to use = instead of in our comparison int next = 2, product = 1; while (next = 5) { product = product * next; next++; } Slide 3- * Loop Testing Guidelines Every time a program is changed, it must be retested Changing one part may require a change to another Every loop

文档评论(0)

1亿VIP精品文档

相关文档