编程新手请教关于MFC的问题
我需要将文本里的数字输入,使用了CstdioFile这个类,但是每次循环两次就会崩掉。是以下语句出了问题,我实在是弄不明白为什么,向各位请教
double *pI = m_CoordOnImg;
double *pG = m_CoordOnGround;
CString str;
int i = 0;
while(DataFile.ReadString(str)) //逐行读取
{
if(i != 0)
{
_stscanf(str, _T("%lf %lf %lf %lf %lf"), pI, pI+1,pG, pG+1, pG+2);
pI = pI + 2;
pG = pG + 3;
}
i = i + 1;
}