求帮助出错??
#include<stdio.h>int fu(char i);
int main()
{
char s[64]={0}, b[64][10]={"苯丙氨酸","苯丙氨酸","亮氨酸","亮氨酸","丝氨酸","丝氨酸","丝氨酸","丝氨酸","酪氨酸","酪氨酸","终止密码子","终止密码子","半胱氨酸","半胱氨酸","终止密码子","色氨酸","亮氨酸","亮氨酸","亮氨酸","亮氨酸","脯氨酸","脯氨酸","脯氨酸","脯氨酸","组氨酸","组氨酸","谷氨酰胺","谷氨酰胺","精氨酸","精氨酸","精氨酸","精氨酸","异亮氨酸","异亮氨酸","异亮氨酸","甲硫氨酸","苏氨酸","苏氨酸","苏氨酸","苏氨酸","天冬酰胺","天冬酰胺","赖氨酸","赖氨酸","丝氨酸","丝氨酸","精氨酸","精氨酸","缬氨酸","缬氨酸","缬氨酸","缬氨酸","丙氨酸","丙氨酸","丙氨酸","丙氨酸","天冬氨酸","天冬氨酸","谷氨酸","谷氨酸","甘氨酸","甘氨酸","甘氨酸","甘氨酸"};
int a,n[64],sum;
printf("请输入DNA单链序列: \n");
scanf("%s",&s);
printf("\n输入的DNA序列为:");
for(a=0;s[a]!=0;a++)
{
printf("-");
printf("%c",s[a]);
}
printf("-");
printf("\n对应的DNA单链为:");
for (a=0;s[a]!=0;a++)
{
printf("-");
switch(s[a])
{
case 'A':printf("T");break;
case 'G':printf("C");break;
case 'T':printf("A");break;
case 'C':printf("G");break;
default :printf(" ");break;
}
}
printf("-");
printf("\n转录生成的M-RNA为:");
for (a=0;s[a]!=0;a++)
{
printf("-");
switch(s[a])
{
case 'A':printf("U");break;
case 'G':printf("C");break;
case 'T':printf("A");break;
case 'C':printf("G");break;
default :printf(" ");break;
}
}
printf("-");
printf("\n翻译合成的蛋白质的氨基酸序列为:\n");
for (a=0;n[a-1]!=1000;a++)
{
n[a] = fu(s[a]);
}
for (a=0;n[a-1]!=1000;a+=3)
{
printf("-");
sum=n[a]*16+n[a+1]*4+n[a+2];
printf("%s",b[sum]);
}
return 0;
}
int fu(char i)
{
int j;
switch(i)
{
case 'A':j=0;break;
case 'G':j=1;break;
case 'T':j=2;break;
case 'C':j=3;break;
default :j=1000;break;
}
return j;
}
运行完一直不能read 谁能告诉我我哪里错了啊??