C++讀檔問題 |
尚未結案
|
gavinee
一般會員 發表:1 回覆:0 積分:0 註冊:2010-11-12 發送簡訊給我 |
請問各位大大: 小弟寫了讀檔的C++語法出現compiler錯誤, 請問要如何排除? 謝謝!
加入的讀檔語法如下: for(int j=0; j<30; j ) { ostringstream inName, outName1, outName2; inName << dir << "\\jobtime" << j 1 << ".txt"; ifstream fin(inName.str().c_str()); if (!fin) {fin.close(); continue;} 錯誤的訊息如下: 115 C:\Program Files\NetMeeting\3\3\Godspeed\D9-991112\Small scale of optimum\DWPSO for optimum-991112.cpp aggregate `std::ostringstream inName' has incomplete type and cannot be defined 115 C:\Program Files\NetMeeting\3\3\Godspeed\D9-991112\Small scale of optimum\DWPSO for optimum-991112.cpp aggregate `std::ostringstream outName1' has incomplete type and cannot be defined 115 C:\Program Files\NetMeeting\3\3\Godspeed\D9-991112\Small scale of optimum\DWPSO for optimum-991112.cpp aggregate `std::ostringstream outName2' has incomplete type and cannot be defined |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |