1 bool VerifyNumber(QString str)
 2 {
 3     std::string temp = str.toStdString();
 4     for (int i = 0; i < str.length(); i++)
 5     {
 6         if (temp[i]<'0' || temp[i]>'9')
 7         {
 8             return false;
 9         }
10     }
11 
12     return true;
13 }    

 

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-09-22
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-12-16
  • 2021-11-17
  • 2021-07-05
  • 2021-05-27
  • 2022-12-23
相关资源
相似解决方案