int main()
{
// 算牌器
char char_name[];
int count = ; do { printf("请输入牌名: \n");
scanf("%2s",char_name);
int value = ;
switch (char_name[]) {
case 'J':
case 'Q':
case 'K':
value = ;
break;
case 'A':
value = ;
break;
case 'X':
continue;
default:
value = atoi(char_name);
break;
} if (value < || value > ) { puts("我无法理解这个值");
continue;
} if (value > && value < ) {
count++;
}
else if (value == ) {
count--;
} printf("计数器的值是: %i \n",count); } while (char_name[] != 'X');
return ;
}