题目内容
写结果。#include#includeusing namespace std;int main() {char str[100]=”Iam20yearsold.” ;char *ptr=str;int total,cap,sma,num,oth;total=cap=sma=num=oth=0;while(*ptr!=0) {total++;if(*ptr>='A'&&*ptr<='Z')cap++;else if(*ptr>='a'&&*ptr<='z')sma++;else if(*ptr>='0'&&*ptr<='9')num++;else oth++;ptr++;}cout<
查看答案
搜索结果不匹配?点我反馈
更多问题