Dnomd343 5 years ago
parent
commit
aa29936ff1
  1. 4
      src/engine/main.cpp

4
src/engine/main.cpp

@ -22,8 +22,8 @@ bool code_check(string str) {
str.resize(9, '0'); // 剩余的补0 str.resize(9, '0'); // 剩余的补0
} }
for (unsigned int i = 0; i < str.length(); i++) { for (unsigned int i = 0; i < str.length(); i++) {
flag = false; flag = false;
if (str[i] >= 48 && str[i] <= 57) { // 0 ~ 9 if (str[i] >= 48 && str[i] <= 57) { // 0 ~ 9
flag = true; flag = true;
} else if (str[i] >= 65 && str[i] <= 70) { // A ~ F } else if (str[i] >= 65 && str[i] <= 70) { // A ~ F
flag = true; flag = true;

Loading…
Cancel
Save