void CEditDialog::HandleRoutine()
{
CEdit *pmyEdit;
pmyEdit = &m_MainEdit;
int nLineCount = pmyEdit->GetLineCount(); CString strText, strLine; // Dump every line of text of the edit control.
for (int i=0; i < nLineCount; i++)
{
pmyEdit->GetLine(i,
strText.GetBuffer(pmyEdit->LineLength(i))); char *tokenPtr;
tokenPtr = strtok(strText.GetBuffer(pmyEdit->LineLength(i)),
" "); while(tokenPtr != NULL )
{
CNCCode routine(strText.GetBuffer(pmyEdit- >LineLength(i)),nLineCount);//我自建的一个类
tokenPtr = strtok( NULL, " ");
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货