線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1761
推到 Plurk!
推到 Facebook!

C++讀檔問題

尚未結案
gavinee
一般會員


發表:1
回覆:0
積分:0
註冊:2010-11-12

發送簡訊給我
#1 引用回覆 回覆 發表時間:2010-11-12 17:09:07 IP:140.136.xxx.xxx 訂閱
請問各位大大: 小弟寫了讀檔的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
系統時間:2024-04-26 12:28:20
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!