<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Allocating multi-dimensional arrays in C++</title>
	<atom:link href="http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/</link>
	<description>Eli Bendersky's personal website</description>
	<pubDate>Sat, 22 Nov 2008 10:19:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Mika</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-125288</link>
		<dc:creator>Mika</dc:creator>
		<pubDate>Thu, 07 Aug 2008 13:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-125288</guid>
		<description>Ah!, Finally thank you very much!.
Was looking all over for this.

I actually tried it before I found this, just didn't think of the need for the reverse deallocation.

It is kinda weird that, my beginners book(Which i am done with!), GameDev, and some other C++ sites, which include beginner guides did not include this(Or they just made it really hard to find)


Well thank you again, now i can continue.</description>
		<content:encoded><![CDATA[<p>Ah!, Finally thank you very much!.<br />
Was looking all over for this.</p>
<p>I actually tried it before I found this, just didn&#8217;t think of the need for the reverse deallocation.</p>
<p>It is kinda weird that, my beginners book(Which i am done with!), GameDev, and some other C++ sites, which include beginner guides did not include this(Or they just made it really hard to find)</p>
<p>Well thank you again, now i can continue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supersaurus</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-125060</link>
		<dc:creator>supersaurus</dc:creator>
		<pubDate>Sun, 03 Aug 2008 14:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-125060</guid>
		<description>or do it in one shot instead:

// the parens are necessary
char (*p2d)[COLUMNS] = new char[ROWS][COLUMNS];

p2d[1][1] = 'x';

delete [] p2d;  // don't forget the []

you can easily see that constructors and destructors are properly called by allocating an array of a simple class that writes output from them.</description>
		<content:encoded><![CDATA[<p>or do it in one shot instead:</p>
<p>// the parens are necessary<br />
char (*p2d)[COLUMNS] = new char[ROWS][COLUMNS];</p>
<p>p2d[1][1] = &#8216;x&#8217;;</p>
<p>delete [] p2d;  // don&#8217;t forget the []</p>
<p>you can easily see that constructors and destructors are properly called by allocating an array of a simple class that writes output from them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moo</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-67060</link>
		<dc:creator>Moo</dc:creator>
		<pubDate>Mon, 27 Aug 2007 13:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-67060</guid>
		<description>People incapable of this shouldnt code anyways.</description>
		<content:encoded><![CDATA[<p>People incapable of this shouldnt code anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Frost</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-50368</link>
		<dc:creator>Bill Frost</dc:creator>
		<pubDate>Fri, 27 Apr 2007 02:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-50368</guid>
		<description>Thanks Eli, this worked first time.</description>
		<content:encoded><![CDATA[<p>Thanks Eli, this worked first time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: len</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-38849</link>
		<dc:creator>len</dc:creator>
		<pubDate>Sat, 17 Mar 2007 22:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-38849</guid>
		<description>very nice and smart :) was looking for smth like that for all day :D</description>
		<content:encoded><![CDATA[<p>very nice and smart <img src='http://eli.thegreenplace.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> was looking for smth like that for all day <img src='http://eli.thegreenplace.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evert Mouw</title>
		<link>http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/#comment-9442</link>
		<dc:creator>Evert Mouw</dc:creator>
		<pubDate>Fri, 24 Nov 2006 11:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2006/04/12/allocating-multi-dimensional-arrays-in-c/#comment-9442</guid>
		<description>Nice article about multidimensional arrays! I was looking for something like this. Your example is very clear and avoids confusing by using a simple delete [] array[i] instead of pointer notation.</description>
		<content:encoded><![CDATA[<p>Nice article about multidimensional arrays! I was looking for something like this. Your example is very clear and avoids confusing by using a simple delete [] array[i] instead of pointer notation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
