作者ric2k1 (Ric)
看板EE_DSnP
标题[公告] HW#1.2 Prob 1 (b).vi 更正
时间Sat Mar 14 01:19:59 2009
原先写说:
(vi) Now let's comment out line 22 "cout << k << endl;" (i.e. the cout
before calling g(30)). Save the file and compile again. What are the outputs
now? Is the (contamination) problem fixed? Why or why not?
If the problem is
not yet fixed, go to step (i) and rerun the debugging again.
Highlight 看起来怪怪的... 因为如果 problem is not yet fixed 的话,
重复 (i) ~ (v) 也不能 fix the bug, 而掉进无限循环...
其实我的意思是:
If the problem is not yet fixed, go to step (i), rerun the debugging again,
and then continue on (vii).
Word & PDF documents 等一下修正.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.224.45.122
1F:推 jeffzpo:prob 1(i) 第一行的at line 21应该是at line 16 03/14 16:13
2F:推 jeffzpo:好像每小题的行数都怪怪的 03/14 16:20
3F:→ ric2k1:会吗? 从题目 copy and paste 下来的行数会怪吗? 03/14 23:50
4F:→ ric2k1:空白也要算一行哦! 在 vi 可用 :21 跳到第 21 行, 03/14 23:51
5F:→ ric2k1:或是用 :set nu 会秀出行号... 03/14 23:52
6F:→ ric2k1:反正 line 21 是指 "int& k = f(10);" 那行, 其他依序类推 03/14 23:53
7F:→ wanga10219:可以打 (gdb) br f 03/15 10:36