已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
'class::Identifier' 不是 'class' 基類的成員
Identifier 無法存取,因為它不是繼承自任何基類的成員。
Identifier
下列範例會產生 C2602:
// C2602.cpp // compile with: /c struct X { int x; }; struct A { int a; }; struct B : public A { X::x; // C2602 B is not derived from X A::a; // OK };
此頁面對您有幫助嗎?