作者ric2k1 (Ric)
看板EE_DSnP
標題Re: [問題] calcModNum.h中
時間Sun Apr 6 23:34:45 2008
※ 引述《popogone (爐魚)》之銘言:
: // Get the ModNum from the _varMap based on the string "str".
: // If found, copy the value.
: // If not found, create a default one and insert to the _varMap.
: ModNum(const string& str);
: 不是很懂這邊意思,那個str是指什麼東西呀?? 然後_varMap又是什麼呢??
: 是說我們輸入modulus number 把它當成string 然後再做轉換?? 還是???
_varMap is a map from "variable name" to class ModNum object.
(Please see STL's map for more details)
上面的 str 就是 variable name.
也就是說輸入一個 variable name 然後檢查看它有沒有在 _vapMap 裏面....
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.121.130.136