Dnomd343 4 years ago
parent
commit
f03ac924b7
  1. 2
      src/engine/HRD_analy.cpp
  2. 2
      src/engine/HRD_analy.h
  3. 2
      src/engine/HRD_cal.cpp
  4. 2
      src/engine/HRD_cal.h

2
src/engine/HRD_analy.cpp

@ -689,7 +689,7 @@ string HRD_analy::Change_str(unsigned long long dat) { // 将数字转化为文
return str;
}
unsigned long long HRD_analy::Change_int (char *str) { // 将文本编码转化为数字(传入9位字符串)
unsigned long long HRD_analy::Change_int(char *str) { // 将文本编码转化为数字(传入9位字符串)
unsigned long long dat = 0;
for (int i = 0; i < 9; i++) { // 将每一位从ASCII码转为数值
dat <<= 4;

2
src/engine/HRD_analy.h

@ -31,7 +31,7 @@ class HRD_analy {
int farthest_num; // 最远布局的个数
vector <unsigned long long> farthest_case; // 所有最远的布局
unsigned long long Change_int (char str[10]);
unsigned long long Change_int(char str[10]);
string Change_str(unsigned long long dat);
bool Check_Code(unsigned long long code);
bool Parse_Code(unsigned long long Code);

2
src/engine/HRD_cal.cpp

@ -455,7 +455,7 @@ string HRD_cal::Change_str(unsigned long long dat) { // 将数字转化为文本
return str;
}
unsigned long long HRD_cal::Change_int (char *str) { // 将文本编码转化为数字(传入9位字符串)
unsigned long long HRD_cal::Change_int(char *str) { // 将文本编码转化为数字(传入9位字符串)
unsigned long long dat = 0;
for (int i = 0; i < 9; i++) { // 将每一位从ASCII码转为数值
dat <<= 4;

2
src/engine/HRD_cal.h

@ -7,7 +7,7 @@ using namespace std;
class HRD_cal {
public:
unsigned long long Change_int (char str[10]);
unsigned long long Change_int(char str[10]);
string Change_str(unsigned long long dat);
bool Check_Code(unsigned long long Code);
vector <unsigned long long> Calculate(unsigned long long Code);

Loading…
Cancel
Save