第3章-周清江副教授-淡江大学.ppt

第3章-周清江副教授-淡江大学

* * * * * 3.3 雙向鍊結串列 * * 3.3 雙向鍊結串列 (ch3_doublelist.java) * * 3.3 雙向鍊結串列(插入) * * 3.3 雙向鍊結串列(刪除) * * 3.3 雙向鍊結串列 (ch3_doublelist.java) 注意 ch3_doublelist.java 的雙向鍊結串列的結構與圖 3.24、3.25、3.26 有一點不同 這會使得 ch3_doublelist.java 的部份程式與圖 3.24、3.25、3.26 不一致。基本上只要 link 的部份處理好,兩者都可以。 31 front rear 5 65 83 78 98 * public void print_front(){ Node this_node; if( !is_empty() ){ // 若非空串列 this_node = front.r_link; System.out.print( == 串列內容為 : ); while(this_node.r_link != front){ System.out.print(this_node

文档评论(0)

1亿VIP精品文档

相关文档