{"image_url":null,"provider_url":"https://hatena.blog","width":"100%","published":"2009-08-22 00:32:15","blog_title":"\u81ea\u7fd2\u5ba4","title":"static\u306a\u30e1\u30f3\u30d0\u5909\u6570\u3092\u6b63\u3057\u304f\u521d\u671f\u5316\u3059\u308b","categories":[".C++"],"blog_url":"https://izmiz.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizmiz.hateblo.jp%2Fentry%2F20090822%2F1250955135\" title=\"static\u306a\u30e1\u30f3\u30d0\u5909\u6570\u3092\u6b63\u3057\u304f\u521d\u671f\u5316\u3059\u308b - \u81ea\u7fd2\u5ba4\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://izmiz.hateblo.jp/entry/20090822/1250955135","type":"rich","provider_name":"Hatena Blog","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/AMANE/","description":"\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u3001.h\u3068.cpp \u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u5272\u3059\u308b\u969b\u306b\u3053\u308c\u307e\u3067\u3082\u4f55\u5ea6\u304b\u540c\u3058\u3088\u3046\u306a\u5f15\u3063\u304b\u304b\u308a\u65b9\u3092\u3057\u3066\u304d\u305f\u6c17\u304c\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002 /*test.h*/ class test{ static int my_intarray[10]; //\u3053\u3053\u304c\u307e\u305a\u3044 public: static void func(); }; /*test.cpp*/ #include \"test.h\" void test::func(){ test::my_intarray[0] = 1; } int main(){ test::func(); return 0; } /*\u4ee5\u4e0b\u7565*/ \u306e\u3088\u3046\u306b\u3001.h \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u5177\u4f53\u7684\u306a\u9818\u57df\u306e\u2026","author_name":"AMANE"}