CArray<double *,double *> Matrix;for(i = 0; i<linerow; i++)
{m_fileIn.ReadString(temp);
m_matrixLine.Add(newrow);
m_matrixLine[i]=new double[linecol];
ZeroMemory(m_matrixLine[i],linecol*sizeof(double));m_matrixRoad.Add(newrow);
m_matrixRoad[i]=new double[4];
ZeroMemory(m_matrixRoad[i],4*sizeof(double));x = 0 ;
for(j = 0; j<linecol; j++)
{
y = temp.Find(",",x);
tempNum = temp.Mid(x,y);
m_matrixLine[i][j]=atof(tempNum);
x = y + 1;
}
}
//下面这条语句提示错误
m_matrixRoad[1,1] = (m_matrixLine[1,1]+m_matrixLine[1,2])/2;
error C2110: cannot add two pointers