作者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