<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pknight</author_name>
  <author_url>https://blog.hatena.ne.jp/pknight/</author_url>
  <blog_title>(void*)Pないと</blog_title>
  <blog_url>https://pknight.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>一次元配列としてnewで確保した配列を二次元配列っぽく扱う。 #include &lt;iostream&gt; using std::cout; using std::endl; const int ARRAY_X = 10; const int ARRAY_Y = 5; int main () { int* array = new int[ARRAY_X * ARRAY_Y]; for(int y=0;y&lt;ARRAY_Y;++y) { for(int x=0;x&lt;ARRAY_X;++x) { v = (y+1)*(x+1); } } for(int y=0;y&lt;ARRAY_Y;++y) { for(i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpknight.hatenablog.com%2Fentry%2F20100330%2F1269938587&quot; title=&quot;一次元配列を二次元配列っぽく扱う - (void*)Pないと&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>2010-03-30 17:43:07</published>
  <title>一次元配列を二次元配列っぽく扱う</title>
  <type>rich</type>
  <url>https://pknight.hatenablog.com/entry/20100330/1269938587</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
