#include<iostream>
using namespace std;
int main()
{
char a[200];
int n=0,l=0,i;
cout<<"请输入小于200个的字符 ";
cin.getline(a,200);
for(i=0;i<strlen(a);i++)
{
if((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))
l++;
if(a[i]>='0'&&a[i]<='9')
n++;
}
cout<<"字母个数为:"<<l<<endl;
cout<<"数字个数为:"<<n<<endl;
system("pause");
return 0;
}