C语言:统计一篇英文文章中所要查询单词出现的次数以及出现的位置
C语言:统计一篇英文文章中所要查询单词出现的次数以及出现的位置
日期:2016-01-17 17:09:31 人气:1
文件存在与程序同一目录下,文件名为test.txt
#include
#include
void change(char *a)
{
while(*a!='\0')
{
if(*a>='A'&&*a<='Z')
*a+=32;
a++;
}
}
int main(void)
{
FILE *fp;
char s[10],read[10],*p=read,ch;
int