int main(void) {
char a, b, c, d;
int n, i;
char s[5];
scanf( "%d", &n);
for (i=0; i<n; ++i) {
scanf( "%s", s);
test( s[0], s[1], s[2], s[3]);
}
return 0;
}
void convert( char c, int i) {
switch (c) {
case 'A':
cardsnum[i] = 1;
break;
case '2':
cardsnum[i] = 2;
break;
case '3':
cardsnum[i] = 3;
break;
case '4':
cardsnum[i] = 4;
break;
case '5':
cardsnum[i] = 5;
break;
case '6':
cardsnum[i] = 6;
break;
case '7':
cardsnum[i] = 7;
break;
case '8':
cardsnum[i] = 8;
break;
case '9':
cardsnum[i] = 9;
break;
case 'T':
cardsnum[i] = 10;
break;
case 'J':
cardsnum[i] = 11;
break;
case 'Q':
cardsnum[i] = 12;
break;
case 'K':
cardsnum[i] = 13;
}
}
double add( double a, double b) {
return a + b;
}
double sub( double a, double b) {
return a - b;
}
double mult( double a, double b) {
return a * b;
}
double div( double a, double b) {
return (b==0) ? TheBigNumber : a/b ;
}
正文
stu(1191)续2005-08-30 20:21:00
【评论】 【打印】 【字体:大 中 小】 本文链接:http://blog.pfan.cn/elva6401/4277.html
阅读(2346) | 评论(0)
版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!
评论