[Error] C:\Users\杨欢\Documents\C-Free\Temp\未命名1.cpp:12: error: ISO C++ forbids comparison between pointer and integer 这是错误提示
#include<stdio.h>
int main()
{ int i,a=0,b=0,c=0,d=0,e,f;
char s1[i];
gets(s1);
for(i=0;s1[i]!="/0";i++)
{
if('A'<=s1[i]<='Z'&&'a'<=s1[i]<='z')
{a=a++;}
if(0<=s1[i]<=9)
{b=b++;}
if(s1[i]==" ")
{c=c++;}
}
printf("%d %d %d",a,b,c);
}这是我 的程序
望远
相关分类