else if(ch_num[i] >= 'a' && ch_num[i] <= 'f'){ res += (ch_num[i]-'A'+10)*pow(16,ch_len-i); } 这里是不是应该 chnumi - a +10 ?
1

相关推荐

牛客网
牛客企业服务