if (...)
Lúc đầu không có gì thì :
Vào else thì pdau đã set rùi, cái đầu cũng đã có chủ, chỉ set cho thằng pcuoi thôi.Code:pdau \ \ [dữ liệu][tiếp]--->[dữ liệu][tiếp]--->[dữ liệu][tiếp]--->[dữ liệu][tiếp]--->... \ \ pcuoi
Code:pdau \ \ [dữ liệu][tiếp]--->[dữ liệu][tiếp]--->[dữ liệu][tiếp]--->[dữ liệu][tiếp]--->... \ \ \ \ \ \ pcuoi......................pcuoi (lần 2) pcuoi (lần 3)...........................