作者dxi (D差耶)
看板EE_DSnP
标题[问题] lexSingleOption & lexOptions
时间Fri Apr 17 17:52:46 2009
请问:
bool CmdExec::lexSingleOption
(const string& option, string& token, bool optional) const{..}
和
bool CmdExec::lexOptions
(const string& option, vector<string>& tokens, size_t nOpts) const{..}
大概是做什麽用的呢?
麻烦老师和各位同学提示一下,谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.7.59
1F:→ treetreeli:好像看打进去的string 要拆成几个部分 single就代表1个 04/17 18:04
2F:→ treetreeli:可以参考calcCmd.cpp cmdCommn.cpp 的exec function 04/17 18:05
3F:→ treetreeli:我也是刚刚才看懂.... 04/17 18:05
4F:→ dxi:大概了解了 谢谢 04/17 18:31