原先的 code 是這樣 (可在 IBM workstation 上 run)
*s = dtoi((0.01*min_s*(double)tid));
我目前的改法是,
*s = (int)((0.01*min_s*(double)tid)) + 1;
不過我還是很好奇為何當初那人會去用 dtoi 這 function?
還有為何 VC++ 沒有 support? (也許可能有其他的名稱)
--
Telnet 140.112.8.172 (titan.cc.ntu.edu.tw)
--
※ Origin: 程式設計樂園 ◆ From: arbor.ee.ntu.edu.tw