作者查詢 / spider391

總覽項目: 發文 | 留言 | 暱稱
作者 spider391 在 PTT [ C_and_CPP ] 看板的留言(推文), 共109則
限定看板:C_and_CPP
看板排序:
[問題] 如何新增點陣圖資源
[ C_and_CPP ]1 留言, 推噓總分: 0
作者: windgodhell - 發表於 2010/01/25 10:21(16年前)
1Fspider391:這看起來是 MFC 使用 bipmap 問題,可以往 MFC 找看看01/25 18:22
[問題] 請告訴我該如何解決visual C++ 6的bug與如何更新到sp6
[ C_and_CPP ]10 留言, 推噓總分: +4
作者: windgodhell - 發表於 2010/01/24 21:38(16年前)
10Fspider391:偷偷推薦 codeblock + wxWidgets XD01/25 18:24
Re: [問題] 一個有意思的問題 vector <const int>
[ C_and_CPP ]16 留言, 推噓總分: +2
作者: freesamael - 發表於 2009/12/20 01:46(16年前)
12Fspider391:我自己有寫個簡單的 vector 去模擬,沒有 Allocator12/20 16:06
13Fspider391:我用 vecotr<const int> 跑出的結果是12/20 16:08
14Fspider391:you cannot assign to a variable that is const12/20 16:08
15Fspider391:這是符合我預期的想法,而 g++ 的 error12/20 16:09
16Fspider391:是在 new_allocator.h 'const void*' to 'void*'12/20 16:10
[問題] 一個有意思的問題 vector <const int>
[ C_and_CPP ]9 留言, 推噓總分: +3
作者: spider391 - 發表於 2009/12/19 21:41(16年前)
2Fspider391:我手邊沒有 Visual Studio 2008, 禮拜一會試試看12/19 22:07
6Fspider391:過關的意思是編譯器會發出 error 還是印出 tmp[0] is 1012/19 22:59
[問題] typeinfo about const
[ C_and_CPP ]6 留言, 推噓總分: +1
作者: spider391 - 發表於 2009/12/19 17:26(16年前)
2Fspider391:The typeid operator ignores top-level const 多謝12/19 19:45
4Fspider391:type_trait 似乎只能測型別不能測變數的型別12/19 21:25
5Fspider391:我用的是 boost::is_same<int,const int>12/19 21:26
6Fspider391:請問 boost 是否有類似 is_same(ia,cia) 之類的 XD12/19 21:27
[問題] 關於讀檔
[ C_and_CPP ]26 留言, 推噓總分: +8
作者: tream - 發表於 2009/12/17 00:24(16年前)
7Fspider391:token 是程式 parser 讀取的最小單位12/17 00:43
8Fspider391:可以找一下 compiler 的書有相關介紹12/17 00:44
Re: [問題] 如何讓vector<A> Get()得到的資料不可修改
[ C_and_CPP ]10 留言, 推噓總分: 0
作者: spider391 - 發表於 2009/12/16 13:03(16年前)
8Fspider391:vector<const A> tmp = test.GetInfo();12/16 22:46
9Fspider391:tmp.push_back( A() );12/16 22:46
[問題] 如何讓vector<A> Get()得到的資料不可修改
[ C_and_CPP ]15 留言, 推噓總分: 0
作者: HeyScng - 發表於 2009/12/15 21:44(16年前)
6Fspider391:const vector<A> GetInfo() 回傳時會有一個temp物件產生12/15 23:00
7Fspider391:而此 temp 物件是 const, temp 物件再利用 copy ctor12/15 23:01
8Fspider391:初始化 tmp 物件。12/15 23:03
9Fspider391:所以 johnhmj 的方法不適用於初始化,而適用於 assign12/15 23:04
[問題] virtual function的問題
[ C_and_CPP ]6 留言, 推噓總分: +3
作者: ckaha - 發表於 2009/09/27 15:55(16年前)
6Fspider391:推一樓 第一個直覺的想法跟一樓一樣XD09/27 21:16
[問題] 看著書上打 還是錯,請幫忙看看
[ C_and_CPP ]7 留言, 推噓總分: +2
作者: leewhite - 發表於 2009/09/26 11:17(16年前)
6Fspider391:C++ 對於 enum 有更嚴格的限制09/26 13:10