#include <stdio.h>
#include <string.h>
void count(char s[])
{
//char *str;
//str=s; 这里不需要再次弄一个指针了,用s[]就可以 ,好像就是传的就是地址
//利用*(s+i)就可以访问了
int nums=0
统计字符串中每种字符出现的次数并输出。
最新推荐文章于 2024-07-25 11:27:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include <stdio.h>
#include <string.h>
void count(char s[])
{
//char *str;
//str=s; 这里不需要再次弄一个指针了,用s[]就可以 ,好像就是传的就是地址
//利用*(s+i)就可以访问了
int nums=0