查找

来源:互联网 发布:c语言按位取反运算符 编辑:程序博客网 时间:2024/05/01 02:54

 void CWorldsFildDlg::OnEnChangeEdit2()

{
CString cstring_final = _T("");
CString cstring_temp = _T("");
int s = 0;
f_m = 0;
UpdateData(true);
for(int n = 0; n < count; n++)
{
if((cstring_fild.GetLength() < c_word[n].GetLength() || cstring_fild.GetLength() == c_word[n].GetLength()) 
&& cstring_fild.Mid( 0,cstring_fild.GetLength() ) == c_word[n].Mid(0,cstring_fild.GetLength()) )
{
   f_m++;
CString temp = _T("");
cstring_final += c_word[n];
}
}
cstring_all = cstring_final;
 
 
print = _T(" Words containing");
string_temp = GetString(f_m);
temp_print = string_temp.c_str();
cstring_num = temp_print + print + _T(" ") + _T("'")+cstring_fild + _T("'");
UpdateData(false);
 
// TODO:  如果该控件是 RICHEDIT 控件,它将不
// 发送此通知,除非重写 CDialog::OnInitDialog()
// 函数并调用 CRichEditCtrl().SetEventMask(),
// 同时将 ENM_CHANGE 标志“或”运算到掩码中。
 
// TODO:  在此添加控件通知处理程序代码
}
原创粉丝点击