作者查詢 / spider391
作者 spider391 在 PTT [ C_and_CPP ] 看板的留言(推文), 共109則
限定看板:C_and_CPP
1F→:這看起來是 MFC 使用 bipmap 問題,可以往 MFC 找看看01/25 18:22
10F→:偷偷推薦 codeblock + wxWidgets XD01/25 18:24
12F→:我自己有寫個簡單的 vector 去模擬,沒有 Allocator12/20 16:06
13F→:我用 vecotr<const int> 跑出的結果是12/20 16:08
14F→:you cannot assign to a variable that is const12/20 16:08
15F→:這是符合我預期的想法,而 g++ 的 error12/20 16:09
16F→:是在 new_allocator.h 'const void*' to 'void*'12/20 16:10
2F→:我手邊沒有 Visual Studio 2008, 禮拜一會試試看12/19 22:07
6F→:過關的意思是編譯器會發出 error 還是印出 tmp[0] is 1012/19 22:59
2F→:The typeid operator ignores top-level const 多謝12/19 19:45
4F→:type_trait 似乎只能測型別不能測變數的型別12/19 21:25
5F→:我用的是 boost::is_same<int,const int>12/19 21:26
6F→:請問 boost 是否有類似 is_same(ia,cia) 之類的 XD12/19 21:27
7F→:token 是程式 parser 讀取的最小單位12/17 00:43
8F→:可以找一下 compiler 的書有相關介紹12/17 00:44
8F→:vector<const A> tmp = test.GetInfo();12/16 22:46
9F→:tmp.push_back( A() );12/16 22:46
6F→:const vector<A> GetInfo() 回傳時會有一個temp物件產生12/15 23:00
7F→:而此 temp 物件是 const, temp 物件再利用 copy ctor12/15 23:01
8F→:初始化 tmp 物件。12/15 23:03
9F→:所以 johnhmj 的方法不適用於初始化,而適用於 assign12/15 23:04
6F→:推一樓 第一個直覺的想法跟一樓一樣XD09/27 21:16
6F→:C++ 對於 enum 有更嚴格的限制09/26 13:10