Re: [問題] 有沒有人發生跟我一樣的狀況的orz

看板EE_DSnP作者 ((((((((((()))))))))))時間17年前 (2008/05/15 01:32), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串3/4 (看更多)
為了 debug 我想在ddd裡面輸入 b rnGen.h:24(在第24行加入breakpoint) 但是ddd卻說 No line 24 in file "rnGen.h" 但我看rnGen.h裡面明明有…(因為完全沒有修改過) 請問...有人遇過類似的情形嗎? 謝謝 p.s. 輸入 b rnGen.h:25的結果也是一樣的 這是部份的rnGen.h 左邊的數字是行數 19 class RandomNumGen 20 { 21 public: 22 RandomNumGen() { my_srandom(getpid()); } 23 RandomNumGen(unsigned seed) { my_srandom(seed); } 24 const int operator() (const int range) const { 25 return int(range * (double(my_random()) / INT_MAX)); 26 } 27 }; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.70.199.99 ※ 編輯: SweepingMonk 來自: 219.70.199.99 (05/15 01:33)

05/15 08:31, , 1F
dir ./include (上課有說...)
05/15 08:31, 1F
文章代碼(AID): #18Ao8RBY (EE_DSnP)
文章代碼(AID): #18Ao8RBY (EE_DSnP)