摘要:
呵呵 原来打印语句位置的不同就是不同的访问方式~ // btree.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdlib.h" int a[10]={1,2,4,5,3,6,7,8,9,10}; struct tree { tree *left; ... 阅读全文
posted @ 2009-03-10 02:24
donneyming
阅读(254)
评论(0)
推荐(0)
摘要:
发现写哈夫曼还是比较好玩 献丑了 :就是每次取2个最小的值算成一个新的节点直到最后一个节点 // hfm.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdlib.h" int a[10]; struct node { int value; int lef... 阅读全文
posted @ 2009-03-10 02:23
donneyming
阅读(222)
评论(0)
推荐(0)
浙公网安备 33010602011771号