发布网友
共2个回答
热心网友
把第二个if改成else if就行了
#include<stdio.h>
热心网友
少了个else:
if(str[i]>='a' && str[i]<='z')
改为
else if(str[i]>='a' && str[i]<='z')