Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求解答问题 #1

Open
fantest-star opened this issue Jun 29, 2020 · 2 comments
Open

求解答问题 #1

fantest-star opened this issue Jun 29, 2020 · 2 comments

Comments

@fantest-star
Copy link

大佬您好,我是一个学生,302行到314能不能给我讲讲呢? 我看了还是不明白 ph是全局头指针,head也是头指针??
if(head) {
if(ph) {
tail->next=ph; ————
ph=head; ——————这两句是什么思想呢??

@xrandx
Copy link
Owner

xrandx commented Aug 9, 2020

head 是临时输入建立的头指针,输入完之后,新输入的结点都用头插法插入原有的链表。N年前写的代码了😂

@xrandx
Copy link
Owner

xrandx commented Aug 9, 2020

大佬您好,我是一个学生,302行到314能不能给我讲讲呢? 我看了还是不明白 ph是全局头指针,head也是头指针??
if(head) {
if(ph) {
tail->next=ph; ————
ph=head; ——————这两句是什么思想呢??

如上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants