//
// Created by Administrator on 2022/10/26.
//
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
int nubmer=0;
int empty=0;
int leter=0;
int other=0;
string s;
getline(cin,s);
for(int i=0;i<s.size();i++){
if(isdigit(s[i])) {
nubmer = nubmer + 1;
}
else if(isalpha(s[i])){
leter++;
}
else if(s[i]==' '){
empty++;
}
else{
other++;
}
}
cout<<leter<<" "<<nubmer<<" "<<empty<<" "<<other<<endl;
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:639 |
C语言考试练习题_排列 (C语言代码)浏览:1347 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:529 |
【蟠桃记】 (C语言代码)浏览:675 |
蛇行矩阵 (C语言代码)浏览:767 |
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)浏览:2085 |
C语言训练-列出最简真分数序列* (C语言代码)浏览:638 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:511 |
1012题解浏览:899 |
简单的a+b (C语言代码)浏览:512 |