//
// 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语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:664 |
C语言训练-素数问题 (C语言代码)浏览:999 |
C语言训练-角谷猜想 (C语言代码)浏览:1717 |
C语言程序设计教程(第三版)课后习题7.1 (C语言代码)浏览:737 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:660 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:690 |
幸运数 (C++代码)浏览:1266 |
1024题解浏览:817 |
字符逆序 (C语言代码)浏览:460 |
A+B for Input-Output Practice (V) (C语言代码)浏览:470 |