文件名称:CountKeyword
介绍说明--下载内容均来自于网络,请自行研究使用
输入C语言保留字文本文件、C语言源程序文件,输出记录对应C语言源文件中各关键词出现次数的文本文件。
完成以下功能:读取C语言保留字文本文件,建立C语言保留字链表;建立逐行读取给定C语言源文件,分解出每个单词并与C语言关键词进行比较,记录各关键词出现的次数,将所有关键词出现的次数保存到给定文本文件;要考虑用命令行参数实现该任务。
要应用以下知识点:文件的读写;字符数组的操作;命令行参数的使用。
-Enter the C language reserved word text file, C language source file, the output recorded in the corresponding C language source file number of the key words of text files. Complete the following features: Read the text file C language reserved words, the establishment of C language reserved word list establish a given line by line to read C language source files, break out each word and compared with the C language keywords and record the key words the number of occurrences, the number of occurrences of all keywords to the given text file stored to consider the use of command line parameters to achieve the task. Knowledge points to the following: file read and write character array operations command line arguments to use.
完成以下功能:读取C语言保留字文本文件,建立C语言保留字链表;建立逐行读取给定C语言源文件,分解出每个单词并与C语言关键词进行比较,记录各关键词出现的次数,将所有关键词出现的次数保存到给定文本文件;要考虑用命令行参数实现该任务。
要应用以下知识点:文件的读写;字符数组的操作;命令行参数的使用。
-Enter the C language reserved word text file, C language source file, the output recorded in the corresponding C language source file number of the key words of text files. Complete the following features: Read the text file C language reserved words, the establishment of C language reserved word list establish a given line by line to read C language source files, break out each word and compared with the C language keywords and record the key words the number of occurrences, the number of occurrences of all keywords to the given text file stored to consider the use of command line parameters to achieve the task. Knowledge points to the following: file read and write character array operations command line arguments to use.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8+统计C语言源文件关键词出现的频度.c