Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は行くいくつかのコードを読んでいます:
extern class MyClass : BaseClass { ... } MyInstance;
extern はクラス宣言またはインスタンスを参照しますか?
実例。クラスを extern にすることはできません。
コードはにおいがしますが、このスニペットは、そのインスタンスの真の宣言が別のクラス定義を使用していることを示唆しています。悪い、悪い考え - クラスを 2 回定義します。