摘要:        
统计一段英文文章中不同单词出现的次数,用F#写着玩玩,纯属娱乐!嘿嘿使用二叉树,中序遍历输出;调用.NET 的File.ReadAllText读取文件module node //二叉树 ,Node为节点,Empty为空节点type Tree = Empty | Node of Tree * string * int * Tree //中序遍历letrec printTree t= match t with | Empty -> printfn "" | Node(l,data,num,r) as n -> printTree l printfn...    阅读全文
        
            posted @ 2011-06-23 22:42
墨梅
阅读(1555)
评论(0)
推荐(1)
        
        
                    
                
浙公网安备 33010602011771号