C++写的这个程序终止不了,求高手帮帮看看(关于矩阵相乘有关问题。代码可以直接运行)

C++写的这个程序终止不了,求高手帮帮看看(关于矩阵相乘问题。代码可以直接运行)


#include <stdlib.h>
#include<conio.h>
#include <iostream.h>
#include <windows.h>
#include <time.h>
//using namespace std;
class CMatrix
{
   private:
         int row;
         int col; 
         int **p; 
   public:
 
         int GetRow() const
         {
             return this->row;
         }
         int GetCol() const
         {
             return this->col;
         }
         CMatrix()
         {
                 this->row=0;
                 this->col=0;
                 this->p=NULL;
         }
         CMatrix(int n,int m)
         {
                 this->row=n;
                 this->col=m;
                 if(n!=0&&m!=0)
                 {
                    this->p=new int*[n];
                    for(int i=0;i<n;i++)
                    this->p[i]=new int[m];
                 }
         }
         virtual ~CMatrix()
         {
            if(this->p!=NULL)
            {
              this->p=NULL;
              delete this->p;
            }
            delete this->p;
cout<<"进入析构函数\n";
         }
        CMatrix(const CMatrix& lp)
{
cout<<"进入复制构造函数\n";
        row=lp.row;