已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
'var' :必須初始化常值數據成員
在 宣告常值 變數時,必須初始化它。
下列範例會產生 C3886:
// C3886.cpp // compile with: /clr /c ref struct Y1 { literal int staticConst; // C3886 literal int staticConst2 = 0; // OK };
此頁面對您有幫助嗎?