2011年4月30日 星期六

Single Linked List Reverse

假設有3個指標:
head指向linked list頭,
cur指向linked list頭,
nextprocess指向null.

if ( cur->next->next != null ) {
cur->next->next = nextprocess;
// 將第三個node先用nextprocess指著


cur->next->next = cur;
head = cur->next;
cur->next = null;

do {
cur = nextprocess;
if ( nextprocess->next != null ) {
nextprocess = nextprocess->next;
// 檢查是否後面還有node
} // if

cur->next = head;
head = cur;
} while ( nextprocess != null )

} // if
else {
//此linked list可能只有0-2個node
} // else

2011年3月17日 星期四

png圖片變成透明

需要準備的工具:

1. 待轉換的png圖片一張

2. power point 2007


教程請看此網站
教學 : 小畫家圖片-背景透明

2011年3月16日 星期三

ubuntu 10.04 MPlayer

可用來播放大多數的影片格式

應用程式->ubuntu軟體中心->搜尋gnome mplayer安裝即可

另外設定字幕的編碼可參見下圖 :





ubuntu 10.04 RealPlayer 取代 KMplayer

可以播放的格式有rm, rmvb..

先到RealPlayer官網下載LINUX版的RealPlayer。

下載deb形式的檔案。


右鍵點選以GDebi套件開啟,安裝即完成。