PTT
網頁版
登入/註冊
新聞
熱門文章
熱門看板
看板列表
作者查詢
最新文章
我的收藏
最近瀏覽
看板名稱查詢
批踢踢 PTT 搜尋引擎
請問C++ Class中 const static object 的life cycle
+收藏
分享
看板
Programming
作者
sorryChen
(陳揚和)
時間
17年前
發表
(2008/09/18 14:44)
,
編輯
推噓
0
(
0
推
0
噓
0
→
)
留言
0則, 0人
參與
,
最新
討論串
1/1
想要在class中定義一個const static object. 就說string 如果在 Class C { const static string* foo; } const string foo = new string("hello"); 請問這個string何時被產生(占記憶體)何時被消滅呢 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 128.125.87.33
‣
返回看板
[
Programming
]
程設
‣
更多 sorryChen 的文章
文章代碼(AID):
#18qVZE8W
(Programming)
更多分享選項
網址:
短網址:
文章代碼(AID):
分享至:
facebook
plurk
twitter
關閉廣告 方便截圖