倒序打印鏈表

採用遞歸的方式打印鏈表:函數 當咱們將後面的處理完再打印遞歸 利用遞歸的方法咱們必定要肯定其出口即何時進行返回List void ResverPrintList(pNode pHead) {     if (NULL == pHead)         return;     if (pHead->_pNext)         ResverPrintList(pHead->_pNext);  
相關文章
相關標籤/搜索