看板 EE_DSnP 關於我們 聯絡資訊
※ 引述《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