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

bug問題

尚未結案
woods
一般會員


發表:11
回覆:8
積分:3
註冊:2003-10-14

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-11-25 19:43:44 IP:140.130.xxx.xxx 未訂閱
 
程式一段是這樣    vector  distance1(t1);
DISTANCE_PTR1 = &distance1;     for(int i = 0; i < t1; i  )
{
distance1[i].resize(t1);
}    compile後有這樣的問題
不是很了解請各為大大幫忙
main3.cpp: In function `int main (int, char **)':
main3.cpp:68: request for member `resize' in `distance1.vector<_Tp, 
_Alloc>::operator[](i)', which is of non-aggregate type `double'
main3.cpp:77: request for member `resize' in `distance2.vector<_Tp, 
_Alloc>::operator[](i)', which is of non-aggregate type `double'    
woods
一般會員


發表:11
回覆:8
積分:3
註冊:2003-10-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-11-27 20:22:11 IP:140.130.xxx.xxx 未訂閱
有人知道這有可能是哪裡出錯了嗎
系統時間:2024-05-19 15:02:55
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!