大家看看我的这段代码错在哪,只有10分相送了!在线等!
UpdateData(true);
int i;
int nLineCount = m_editLower.GetLineCount();
Mm temp=zeros(1,nLineCount);
CString strText, strLine;
for (i=0;i<nLineCount;i++)
{
m_editLower.GetLine(i, strText.GetBuffer(m_editLower.LineLength(i)));
strLine.Format(TEXT("line %d: '%s'\r\n"), i, strText.GetBuffer(0));
strText.ReleaseBuffer();
temp.r(1,i+1)=atoi((LPCTSTR)strLine);
}
想从编辑框返回我输入的整型数据,我输入任何数,temp的值都是零。temp为矩阵类。