回复 11楼 H_K
搞混了,结果该是:
7
3
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
FTFTTTTTTFTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
TTTTTTTTTFTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
not
上回给你的代码有点小错误:
这个循环该如下这样写:
for(i=0;i<long_num;i++)
{
if((long_str[i]>='A')&&(long_str[i]<='Z'))
{
num[long_str[i]-'A']='T';
}
}