<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AMANE</author_name>
  <author_url>https://blog.hatena.ne.jp/AMANE/</author_url>
  <blog_title>自習室</blog_title>
  <blog_url>https://izmiz.hateblo.jp/</blog_url>
  <categories>
    <anon>.C++</anon>
  </categories>
  <description>クラスを定義して、.hと.cpp のファイルに分割する際にこれまでも何度か同じような引っかかり方をしてきた気がするのでメモ。 /*test.h*/ class test{ static int my_intarray[10]; //ここがまずい public: static void func(); }; /*test.cpp*/ #include &quot;test.h&quot; void test::func(){ test::my_intarray[0] = 1; } int main(){ test::func(); return 0; } /*以下略*/ のように、.h ファイルの中で具体的な領域の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizmiz.hateblo.jp%2Fentry%2F20090822%2F1250955135&quot; title=&quot;staticなメンバ変数を正しく初期化する - 自習室&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-22 00:32:15</published>
  <title>staticなメンバ変数を正しく初期化する</title>
  <type>rich</type>
  <url>https://izmiz.hateblo.jp/entry/20090822/1250955135</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
