Re: [問題] 有沒有人發生跟我一樣的狀況的orz
看板EE_DSnP作者SweepingMonk ((((((((((()))))))))))時間17年前 (2008/05/15 01:32)推噓1(1推 0噓 0→)留言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
05/15 08:31, 1F
討論串 (同標題文章)
完整討論串 (本文為第 3 之 4 篇):