1. 首页
  2. 考试认证
  3. 其它
  4. chfreq.c 计算字符串中的字符频率

chfreq.c 计算字符串中的字符频率

上传者: 2024-10-06 11:03:02上传 ZIP文件 6.34KB 热度 3次
chfreq.c计算字符串中的字符频率安装: $ clib install jwerle/chfreq.c来源: $ git clone git@github.com:jwerle/chfreq.c.git $ cd chfreq.c $ make install例子# include < stdlib> # include < stdint> # include < stdio> # include " chfreq.h " int main ( void ) { char *str = " aabbcc " ; uint32_t freq** = chfreq (str); printf ( " %c %d " , freq[ 0 ], freq[ 0 ][ 1 ]); printf ( " %c %d
下载地址
用户评论