討論串[問題] 用struct作為map的key,value
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
^^^^^^^^^^^^^^^^^^^^^^^^^^^這個是你的 key 吧。 ^^^^^^^ 你的 key 裡才 3 個變數。. 先講講你是怎樣把這樣的概念用在你 key 的 struct 中吧。. 解決問題並不是選擇了一條路線一遇到錯誤就退回起點找別條,. 這不是好習慣。. 常常好不容易找對路敲
(還有592個字)
內容預覽:
在網路上看到了這樣的討論串:. http://www.daniweb.com/forums/showthread.php?p=812327#post812327. 其中七樓(#7)的回應中提到需要"讓(key1, key2)的組合是唯一"的,. 因此在下面作者lyle017有了這樣的回覆:. boo
(還有179個字)
內容預覽:
假設我定義兩個結構及一個map:. typedef struct i_test {. unsigned int ii1;. unsigned int ii2;. unsigned int ii3;. };. typedef struct v_test {. unsigned int vv1;. un
(還有219個字)
首頁
上一頁
1
下一頁
尾頁