Merged
Conversation
This is WordCount.cpp
包含其它自定义函数
包含其它自定义函数声明和其他头文件
添加ASCII码计数函数声明
添加ASCII码计数函数体
添加了辅助判断是否为单词,是否为数字单词,是否为空白或者换行字符,和比较函数。
添加函数声明 定义特定字符的ASCII码数值为常量
添加了 词数统计和行数统计 函数声明 创建了map来记录单词 vector容器来记录单词的出现次数
添加了词数统计和行数统计函数体
增加了输出函数,优化了判断条件冗余的常量ascii值 使用字符串判断
更新输出函数 添加常量
重新在本地排版了一下 和原来版本只有顺序上的差别
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
221801126