16,548
社区成员




void CFilebasedialgDlg::OnOK()
{
// TODO: Add extra validation here
CString str1;
CString *str2;
str2=new CString;
GetDlgItemText(IDC_EDIT1,str1);
FILE *pFile=fopen("1.txt","r");
fread(str2,1,10,pFile);
if(str1==*str2)
MessageBox("你果然是个猪");
else
MessageBox("你还是个猪");
CDialog::OnOK();
}