标签:print printf null 逆序 list class head pre 链表
方法一:递归
void PrintListReversingly(ListNode* pHead){
if (pHead !=NULL){
if (pHead->m_pNext !=NULL){
PrintListReversingly(pHead->m_pNext);
}
printf("%d\t",pHead->m_nValue)
}
}
标签:print printf null 逆序 list class head pre 链表
原文地址:https://www.cnblogs.com/rise0111/p/11373338.html