MFC vc++判断文本框输入的值是否为数字-编辑框是否数字
办法1:
CString str;
GetDlgItem(IDC_EDIT1)->GetWindowText(str);
char c;
for(int i = 0; i < str.GetLength(); i++)
{
c = str.GetAt(i);
if(c >= '0' && c
关注
打赏
MFC vc++判断文本框输入的值是否为数字-编辑框是否数字
办法1:
CString str;
GetDlgItem(IDC_EDIT1)->GetWindowText(str);
char c;
for(int i = 0; i < str.GetLength(); i++)
{
c = str.GetAt(i);
if(c >= '0' && c
微信扫码登录