→ sa901119:STL stack 有內建的 pop&push 04/17 12:43
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.250.228
請問recursively dofile的時候應該有哪些輸出呢?
bool pushDofile();
bool popDofile();
stack<ifstream*> _dofileStack; // For recursive dofile calling
似乎要用到這三個member,可是說明好少..
而且push跟pop在其他檔案中也沒有實裝,請問要自己寫嗎?
我的openDofile()裡只有簡單的open()跟is_open()...
目前輸入有限長度的dofile是可以正常運作...可是感覺很心虛..<囧>
--