批踢踢實業坊
›
看板
Programming
關於我們
聯絡資訊
返回看板
作者
sorryChen (陳揚和)
看板
Programming
標題
請問C++ Class中 const static object 的life cycle
時間
Thu Sep 18 14:44:28 2008
想要在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