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