作者itspeter (Peter)
看板EE_DSnP
標題[問題] 請問HW4 PDF文意..
時間Sat Apr 26 17:07:10 2008
在指令說命中,老師給的一些要檢查的點中
第一點的
Guarded command errors:
1. lexOptions() == false
是什麼意思呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.252.4
1F:推 ric2k1:就是去呼叫 "CmdExec::lexOptions" 然後看看有沒有 error 04/26 17:20
2F:→ ric2k1:options 會被 tokenized 存在 vector<string> 裡 04/26 17:20
3F:→ itspeter:可以偷問一下老師是一個函式裡呼叫一次還是不止一次嗎? 04/26 17:24
4F:推 trancewu:lexOptions 還有 lexSingleOption 包在.o檔中嗎? 04/26 18:28
5F:推 ric2k1:三樓: 應該一次就好了. 04/26 21:41
6F:推 ric2k1:四樓: 是在 cmdParser.o 中, 但是可以看 hw3 src/cmd... 04/26 21:41