C#中Hashtable的使用
为了实现一串字符串各种字符串出现的次数统计,在C++中可以使用map容器实现,与它对应的,在C#中可以使用Hashtable实现。这里统计以分号实现分隔的各字符串频率统计程序。using System;using System.Collections;namespace HashTable{ class Program { private static void faultStatistic(Hashtable hashtable, string item) {
原创
2010-12-26 16:37:00 ·
1198 阅读 ·
0 评论