C语言 求判断int _tmain(int argc,_TCHAR* argv[]){ \x09char ch[100];int n=0,i;\x09printf("please input english:\n");\x09gets_s(ch);\x09\x09for( i=1;i'Z'||ch[i]'z'||ch[i]='A'&&ch[i-1]

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 09:48:14
C语言 求判断int _tmain(int argc,_TCHAR* argv[]){ \x09char ch[100];int n=0,i;\x09printf(
xTKK@+bM%)6ųxҖ6YkLH ^TPO"zWR7?/m+xٙof盙M,nN/&}Pu4j^Vw6JbU(*Yn JArdZVCa mlHQzñP7I% wn׍*|TsQrB͒(P\%E&h[[Y,pf0̘4m%{nlɠ?"34 :Uԏ▕amL3>? )tk9iK*e.I(gtWmÛ:J>d H]vOҡvJ1+Kc^bH""2NT/(>}|}ѩK^X`x% ED' MgU,ƞ>[L mjH~_

C语言 求判断int _tmain(int argc,_TCHAR* argv[]){ \x09char ch[100];int n=0,i;\x09printf("please input english:\n");\x09gets_s(ch);\x09\x09for( i=1;i'Z'||ch[i]'z'||ch[i]='A'&&ch[i-1]
C语言 求判断
int _tmain(int argc,_TCHAR* argv[])
{
\x09char ch[100];
int n=0,i;
\x09printf("please input english:\n");
\x09gets_s(ch);
\x09\x09for( i=1;i'Z'||ch[i]'z'||ch[i]='A'&&ch[i-1]

C语言 求判断int _tmain(int argc,_TCHAR* argv[]){ \x09char ch[100];int n=0,i;\x09printf("please input english:\n");\x09gets_s(ch);\x09\x09for( i=1;i'Z'||ch[i]'z'||ch[i]='A'&&ch[i-1]
int _tmain(int argc, _TCHAR* argv[])
{      
    char  ch[100];
    int n=0,i;
    printf("please input english:\n");
    gets_s(ch);
\x09for( i=1;i<100&&ch[i]!='\0';i++)/*这里应该是不等于'\0'*/
\x09{
\x09\x09if ((ch[i]>'Z'||ch[i]<'A')&&(ch[i]>'z'||ch[i]<'a'))
\x09\x09{
\x09            if ((ch[i-1]<='Z'&&ch[i-1]>='A')||(ch[i-1]<='z'&&ch[i-1]>='a')) 
\x09            n++;
\x09\x09}
\x09}
\x09\x09if((ch[i-1]<='z'&&ch[i-1]>='a')||(ch[i-1]>='A'&&ch[i-1]<='Z')) n=n+1;
\x09\x09printf("%d",n);

}