作者SweepingMonk ((((((((((()))))))))))
看板EE_DSnP
標題Re: [問題] 有沒有人發生跟我一樣的狀況的orz
時間Thu May 15 01:32:10 2008
為了 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)
1F:推 ric2k2:dir ./include (上課有說...) 05/15 08:31