<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>06hc123's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/292920/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user 06hc123.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 16:54:24 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>How to write method destructor ~Matrix in my class?</title>
      <link>http://www.programmersheaven.com/mb/cppnet/386565/386565/ReadMessage.aspx#386565</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/cppnet/386565/386565/ReadMessage.aspx#386565"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/cppnet/Board.aspx"&gt;C++.NET&lt;/a&gt; forum.&lt;/p&gt;I wrote class Matrix &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;class Matrix
{
	int rows;
	int cols;
	int **MT;
public:
	Matrix(const Matrix &amp;amp;M);
	Matrix(int Rows=0, int Cols=0);
	Matrix();
	~Matrix();
	const Matrix &amp;amp; operator=(const Matrix &amp;amp;M);
	friend Matrix operator+(const Matrix,const Matrix);
	friend Matrix operator-(const Matrix,const Matrix);
	friend Matrix operator*(const Matrix,const Matrix);
	friend ostream&amp;amp; operator&amp;lt;&amp;lt;(ostream &amp;amp;, const Matrix &amp;amp;);
	friend istream&amp;amp; operator&amp;gt;&amp;gt;(istream &amp;amp;, Matrix &amp;amp;);
};
 
Matrix::Matrix(int Rows, int Cols)
{
	rows=Rows;
	cols=Cols;
	MT=new int *[rows];
	for(int i=0; i&amp;lt;rows; i++)
		MT[i]=new int[cols];
}

Matrix::~Matrix()
{
	//what is source code here ???
}&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/cppnet/386565/386565/ReadMessage.aspx#386565</guid>
      <pubDate>Sun, 01 Mar 2009 21:14:21 -0700</pubDate>
    </item>
  </channel>
</rss>