Linux °æ (¾«»ªÇø)

·¢ÐÅÈË: netiscpu (Ò¹¡îÐǹâµãµã¡î), ÐÅÇø: Linux
±ê  Ìâ: ¡ó ÐÇÐÇÁ÷½²×ù 0048
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Sun Nov  8 18:39:44 1998), ×ªÐÅ


¼ÄÐÅÈË: guest.bbs@hgluo.hust.edu.cn 
±ê  Ìâ: ¡ó ÐÇÐÇÁ÷½²×ù 0048
·¢ÐÅÕ¾: »ªÄÏÀí¹¤´óѧ BBSľÃÞÕ¾
ÈÕ  ÆÚ: Thu Feb 20 14:57:25 1997

·¢ÐÅÈË: ax.bbs@bbs.ee.nthu.edu.tw. (athena), ÐÅÇø: test
±ê  Ìâ: ÐÇÐÇÁ÷½²×ù 0048
·¢ÐÅÕ¾: ¡îÇ廪µç»ú¡î (Sun Jul 23 00:18:53 1995)


;35mµÚ 7 ½² Ö® 6            µÝ»Øʽ¶¨ÒåµÄ½á¹¹
                        Topic: Self-referential Structuresm

½á¹¹ÔÚ¶¨ÒåµÄʱºòÒ²¿ÉÒÔÒýÓÃ×Ô¼º£¬×î³£¼ûµÄÊÇÔÚ¶¨Òå¶þÔªÊ÷ (binary
tree) µÄʱºò¡£Ê²÷á½Ð¶þÔªÊ÷ÄØ£¿ÎÒÃDz¢²»´òËãÔڴ˸ø¶þÔªÊ÷×÷ÏêϸµÄ
½éÉÜ£¬ÓÐÐËȤµÄ¶ÁÕßÇëÄã×Ô¼º²Î¿¼×ÊÁϽṹµÄÊé¼®¡£»ù±¾É϶þÔªÊ÷³¤µÄ
ÏñÕâ¸öÑù×Ó£º

                A
               / \
              B   C
             / \
            D   E

ÿ¸öò×I (node) ×î¶àÓÐÁ½¸ö×Ó½Úµã (child)£¬ËùÒÔ×î³£¼ûµÄ½Úµã½á¹¹
µÄ¶¨ÒåÊÇ£º

        struct node
        {
            int content;
            struct node *lchild;
            struct node *rchild;
        };

ÎÒÃÇ¿ÉÒÔ·¢ÏÖÔÚ node Õâ¸ö½á¹¹µÄÐû¸æÖо¹È»ÒýÓÃËü×Ô¼º£¬ÕâÖÖÐû¸æ
·½Ê½ÔÚ C ÓïÑÔÖÐÊǺϷ¨µÄ£¬ËüµÄÒâÒå¾ÍÊÇÓÃÀ´×öÊ÷ (tree) µÄ¶¨Òå¡£

--
±¾ÎÄÔ­×÷ÕßΪÐìÕñ¼Ò£¬Ô­×÷¿¯ÔØì¶ÐÇÐÇÉñ½ÌÇ«¡õ¡îÇ廪µç»ú¡î test °å¡£
Äã¿ÉÒÔÒÔµç×ÓÎļþµÄÐÎʽ½«±¾ÎÄ×ÔÓÉÁ÷´«ì¶Ì¨ÍåѧÊõÍø·£¬µ«±ØÐë°üº¬´Ë°æȨÉùÃ÷¡£
Ô­×÷ÕßÒÀÖлªÃñ¹úÖø×÷Ȩ·¨Ö®¹æ¶¨£¬ÏíÓб¾ÎÄÖ®Öø×÷Ȩ£¬ÇëÎð³­Ï®ÒÔÃâ´¥·¨¡£
δ¾­ÊÚȨÈκÎÈ˲»µÃÒÔÈκÎÐÎʽ¶Ô±¾ÎÄ×öÈκÎÐ޸ļ°ÉÌÒµÉÏÖ®Ó¦Óá£
ÆäËûÍø·µÄתÔØ»òÆäËûÓÃ;µÄÓ¦Óã¬ÇëÏÈÖª»á×÷Õߣ¬²¢È¡µÃÆäͬÒâ¡£
¶Ô±¾ÎÄÓÐÈκÎÒÉÎÊ»òÒâ¼ûÇë mail ¸ø ax.bbs@bbs.ee.nthu.edu.tw£¬Ð»Ð»¡£
--
m;32m¡ù ×ª¼Ä:£®»ªÄÏÍøľÃÞÕ¾ bbs.gznet.edu.cn£®[FROM: mtlab.hit.edu.cn]Ú
--

                              Enjoy Linux!
                          -----It's FREE!-----

¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: mtlab.hit.edu.cn]
[°Ù±¦Ïä] [·µ»ØÊ×Ò³] [Éϼ¶Ä¿Â¼] [¸ùĿ¼] [·µ»Ø¶¥²¿] [Ë¢ÐÂ] [·µ»Ø]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.287ºÁÃë