摘要:
问题1:在文档中统计单词的频数。在C++中遇到这类问题只需调用STL中的set或者map就可以很快的解决了,但是在C中需要自己实现。#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct node{ char *word; int count; struct node * next;}node;#define NHASH 29989#define MULT 31node *bin[NHASH];unsigned int hash(char *p){ unsigned int 阅读全文
posted @ 2012-06-12 19:35
蓝色守望
阅读(261)
评论(0)
推荐(0)

浙公网安备 33010602011771号