問題一: slist 沒有 destructor ??
感覺怪怪的 :P
問題二: 新版的pdf上寫到
iterator erase(iterator pos); // Erases the element at position pos (15 pts)
[Note] If (pos == 0), do nothing;.....
可是這樣還是要return吧?
該return什麼呢?
還是仍應該throw exception?
--
. * ‧ . .
.點點星空照上風~ .
* . . ﹢ ·
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.251.56