<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 6.5 &#8212; Multidimensional Arrays</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: zingmars</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95902</link>
		<dc:creator>zingmars</dc:creator>
		<pubDate>Sat, 20 Aug 2011 15:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95902</guid>
		<description>If you want help, you better provide us with your code, because I have no idea how your code works.</description>
		<content:encoded><![CDATA[<p>If you want help, you better provide us with your code, because I have no idea how your code works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paras</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95819</link>
		<dc:creator>paras</dc:creator>
		<pubDate>Fri, 05 Aug 2011 15:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95819</guid>
		<description>i.e in matrix form i want to print the output...please help me out...</description>
		<content:encoded><![CDATA[<p>i.e in matrix form i want to print the output&#8230;please help me out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paras</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95818</link>
		<dc:creator>paras</dc:creator>
		<pubDate>Fri, 05 Aug 2011 15:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95818</guid>
		<description>Hi Alex..I am a begginer in C++. I have written a code to add matrices,the code is all fine the only problem is that when i m printing the output it is looking something like this 12 12 12 12 12 instead of this i want it as 12 12 12
                     12 12 12
                     12 12 12..Can u please help me...</description>
		<content:encoded><![CDATA[<p>Hi Alex..I am a begginer in C++. I have written a code to add matrices,the code is all fine the only problem is that when i m printing the output it is looking something like this 12 12 12 12 12 instead of this i want it as 12 12 12<br />
                     12 12 12<br />
                     12 12 12..Can u please help me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi_ida</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95271</link>
		<dc:creator>Adi_ida</dc:creator>
		<pubDate>Mon, 21 Mar 2011 17:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95271</guid>
		<description>How to convert an array of 2 dimensions to one dimension?</description>
		<content:encoded><![CDATA[<p>How to convert an array of 2 dimensions to one dimension?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: copier1</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95178</link>
		<dc:creator>copier1</dc:creator>
		<pubDate>Sat, 12 Feb 2011 04:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95178</guid>
		<description>Arrays have to be initialized with the dimension size. In a later lesson you learn how to do this at run time instead of at the time it&#039;s compiled. In either case, the size does have to be dimensions do have to be known beforehand.

You can use a function or a class to determine the length and number of rows from the file.</description>
		<content:encoded><![CDATA[<p>Arrays have to be initialized with the dimension size. In a later lesson you learn how to do this at run time instead of at the time it&#8217;s compiled. In either case, the size does have to be dimensions do have to be known beforehand.</p>
<p>You can use a function or a class to determine the length and number of rows from the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaMonroe</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-95113</link>
		<dc:creator>DaMonroe</dc:creator>
		<pubDate>Fri, 21 Jan 2011 16:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-95113</guid>
		<description>Great, but if you don&#039;t know the length of the actual number of rows, the outer loop can&#039;t be a &quot;for&quot; loop.  How could a &quot;while&quot; be controlled when filling an array from a file?</description>
		<content:encoded><![CDATA[<p>Great, but if you don&#8217;t know the length of the actual number of rows, the outer loop can&#8217;t be a &#8220;for&#8221; loop.  How could a &#8220;while&#8221; be controlled when filling an array from a file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-89623</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 04 Aug 2010 17:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-89623</guid>
		<description>I will give two kinds of methods (one is similar to the author&#039;s, but a bit shorter)
&lt;pre&gt;
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
using namespace std;
// 
// int main()
// {
// 	int row = 10;
// 	int column = 10;
// 	int table_array[row][column];
// 	
// 	for (int i = 1; i &lt; row; i++)
// 	{
// 		for (int j = 1; j &lt; column; j++)
// 		{
// 			table_array[i][j] = i*j;
// 			cout &lt;&lt; setw(5) &lt;&lt; table_array[i][j];
// 		}
// 		cout &lt;&lt; endl;
// 	}
// 	return 0;
// 
// 
// }

// int main()
// {
// 	int row = 13;
// 	int column = 13;
// 	int table_array[row][column];
// 	
// 	for (int i = 1; i &lt; row; i++)
// 	{
// 		int temp = 0;
// 		for (int j = 1; j &lt; column; j++)
// 		{
// 			
// 			temp += i;
// 			table_array[i][j] = temp;
// 			cout &lt;&lt; setw(4) &lt;&lt; table_array[i][j];
// 		}
// 		cout &lt;&lt; endl;
// 	}
// 	return 0;
// }
&lt;/pre&gt;

The first method just takes the cout into the loop as well.
The second is just the stupid-way to do this problem, using additional instead.</description>
		<content:encoded><![CDATA[<p>I will give two kinds of methods (one is similar to the author&#8217;s, but a bit shorter)</p>
<pre>
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
using namespace std;
//
// int main()
// {
// 	int row = 10;
// 	int column = 10;
// 	int table_array[row][column];
//
// 	for (int i = 1; i &lt; row; i++)
// 	{
// 		for (int j = 1; j &lt; column; j++)
// 		{
// 			table_array[i][j] = i*j;
// 			cout &lt;&lt; setw(5) &lt;&lt; table_array[i][j];
// 		}
// 		cout &lt;&lt; endl;
// 	}
// 	return 0;
//
//
// }

// int main()
// {
// 	int row = 13;
// 	int column = 13;
// 	int table_array[row][column];
//
// 	for (int i = 1; i &lt; row; i++)
// 	{
// 		int temp = 0;
// 		for (int j = 1; j &lt; column; j++)
// 		{
//
// 			temp += i;
// 			table_array[i][j] = temp;
// 			cout &lt;&lt; setw(4) &lt;&lt; table_array[i][j];
// 		}
// 		cout &lt;&lt; endl;
// 	}
// 	return 0;
// }
</pre>
<p>The first method just takes the cout into the loop as well.<br />
The second is just the stupid-way to do this problem, using additional instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akila</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-82486</link>
		<dc:creator>akila</dc:creator>
		<pubDate>Thu, 08 Apr 2010 07:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-82486</guid>
		<description>in multidimensional array ,
one column contain a integer,
another column contain a string,
how we declare an array to accept  a value</description>
		<content:encoded><![CDATA[<p>in multidimensional array ,<br />
one column contain a integer,<br />
another column contain a string,<br />
how we declare an array to accept  a value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheesefriend</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-75362</link>
		<dc:creator>Cheesefriend</dc:creator>
		<pubDate>Sat, 02 Jan 2010 21:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-75362</guid>
		<description>&lt;pre&gt;
using a 2 dimensional array that is printed to the screen
is properly the eaisest way to make a 2d game map you
can move around on for those that is intrested in that.

made a game like that in matlab:)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>
using a 2 dimensional array that is printed to the screen
is properly the eaisest way to make a 2d game map you
can move around on for those that is intrested in that.

made a game like that in matlab:)
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fluke</title>
		<link>http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/comment-page-1/#comment-73544</link>
		<dc:creator>Fluke</dc:creator>
		<pubDate>Thu, 03 Dec 2009 09:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/#comment-73544</guid>
		<description>If you trying to shorten the good example code, just remove the array part :)</description>
		<content:encoded><![CDATA[<p>If you trying to shorten the good example code, just remove the array part :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

