作者andyisvery (堯堯)
看板EE_DSnP
標題[問題] 為何Hw2 deleteLine 要清除_readBuf ?
時間Thu Oct 18 10:11:05 2012
//1.Delete the line that is shown on screen
//2.Reset _readGufPtr and _readBufEnd to _readBuf
//3.Make sure *_readBufEnd = 0
CmdParser::deleteLine(){
~(0_0)~TODO~(。_。)~
}
如果沒有2.,3. 的話,感覺deleteLine比較好呼叫。
反正都已經寫好了 resetBufAndPrintPrompt(),
addHistory()也會做清除的動作
如果可以達成程式的目標,但是沒遵照指示會被扣分嗎?
※ 編輯: andyisvery 來自: 140.112.174.138 (10/18 13:18)