1.リンケージ以外の静的構造の用途は何ですか?
static struct test //THIS ONE
{
int a;
};
2.このような static を使用する用途は何ですか? これを作成し、(構造体オブジェクトを介して) 静的メンバーを使用しようとすると、「`test::a' への未定義の参照」が表示されます。
struct test
{
static int a; //THIS ONE
};
3. 静的構造オブジェクトの作成の用途は何ですか?
struct test{
int a;
};
int main()
{
static test inst; //THIS ONE
return 0;
}