c++英文试题 Suppose that a program has declared these three vari

c++英文试题
Suppose that a program has declared these three variables using the dnode class shown
above.
dnode *b;
dnode *h;
dnode *z;
After executing part of the program,the pointer b is a head pointer for a non-empty
linked list.
Write some code that can be placed in the program at this point to make a complete copy
of b's linked list.At the end of your code,b should be unchanged,h should be the head
pointer of the new list,and z should be the tail pointer of the new list.If necessary,you
may declare other dnode * variables to use in your algorithm.
真没有 1年前 已收到1个回答 举报

deyy2008 幼苗

共回答了14个问题采纳率:71.4% 举报

大家都来帮忙 早日结贴!

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.017 s. - webmaster@yulucn.com