include <stdio.h>#include <conio.h>#define LEN 50int main (void) {char str[LEN];char *p=str;int capCnt, lowCnt, othCnt;capCnt=lowCnt=othCnt=0;puts ("输入字符串:");while ((*p = getchar())!= '\n') {if (*p>='A'&&*p<='Z')capCnt++;else if (*p>='a'&&*...
void main(){ char c;int letters=0,digit=0;printf("please input some characters\n");while((c=getch())!='!'){ if(c>='a'&&c<='z'||c>='A'&&c<='Z')letters++;else if(c>='0'&&c<='9')digit++;} printf("char=%d digit=%d\n",letters,digit);} ...
cout<< "大写字母个数为:" << iDx << "小写字母个数为:"<< iXx << endl;