作者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