输入3行字符统计其中的字母,数字,空格和其他字符的个数。(strcat())
字符串数组
输入3行字符统计其中的字母,数字,空格和其他字符的个数。(strcat()) 字符串数组
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
关注#include <stdio.h> int main() { char s[100]; int letter=0,space=0 ,digit=0,other=0; gets(s); statistic(s,&letter,&space ,&digit,&other); gets(s); statistic(s,&letter,&space ,&digit,&other); gets(s); statistic(s,&letter,&space ,&digit,&other); printf("lettle:%d,digit:%d,space:%d,other:%d\n",letter,digit,space,other); return 0; }解决 无用评论 打赏 举报