1-13
read a word , EOF to stop
if the word is ' ' or '/t' or '/n'
if the pre state is IN
push count to a[i]
add i once
count=0
if the word is not a ' ' and '/t' and '/n'
if the pre state is OUT
update the state to IN
add count once
update lasts to state
1-14
本文介绍了一个简单的字符计数与统计程序,该程序能够读取输入并统计非空格、非制表符及非换行符字符的数量,并将这些计数结果存储在一个数组中。此外,还提供了一个更复杂的实现,用于统计ASCII字符出现的频率,并按区间打印出出现的字符。

被折叠的 条评论
为什么被折叠?



