用C语言分类统计字符个数:输入一行字符,统计出其中的英文字母、空格、数字和其他字符的个数。试编写相应程序。
代码如下#define_CRT_SECURE_NO_WARNINGS1#include#include//引入ctype.h头文件以使用isalpha,isspace,isdigit等函数intmain(){charinput[1000];//假设输入字符不超过1000个intletter_count=0;intspace_count=0;intdigit_count=0;intother_cou