作业帮 > 综合 > 作业

判断字母,数字,空格,及其它字母个数

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/15 09:03:31
判断字母,数字,空格,及其它字母个数
#include
#include
void count(char *p)
{
int ch=0,num=0,space=0,other=0;
int i;
for(i=0;i='A' && p[i]='0' && p[i]
“*”表示p是指针,如果学成char p,说明只定义了一个字符,就不能接收字符数组str传来的值