





为什么我这个程序输入的感叹号计数后始终为0而句号的数量是对的
int t = 0;
int n = 0;
char tan[] = "!";
char ju[] = ".";
char s1[] = "#";
char s2[] = "q";
do {
if (strcmp(tan, s2) == 0) {
t++;
}
else if (strcmp(ju, s2) == 0){
n++;
}
scanf("%c", &s2);
} while (strcmp(s2, s1) != 0);
printf("!: %d\n", t);
printf(".: %d\n", n);
