if(id[0] < 'I') *sum += 10 + id[0] - 'A';
else if(id[0] > 'I' && id[0] < 'O') *sum += 10 + id[0] - 'A' - 1;
else if(id[0] > 'O' && id[0] < 'W') *sum += 10 + id[0] - 'A' - 2;
else if (id[0] > 'W' && id[0] < 'Z') *sum += 10 + id[0] - 'A' - 3;
else if (id[0] == 'I') *sum += 34;
else if (id[0] == 'W') *sum += 32;
else if (id[0] == 'O') *sum += 35;
else if (id[0] == 'Z') *sum += 33;
比硬爆好一點吧