[英]How do i create and populate a linked list using classes in c++?
I am trying to create a program which uses classes to create a linked list data structure. 我正在尝试创建一个使用类创建链表数据结构的程序。 Is it necessary to create one linked list class which contains the list in it's entirety: nodes with info and the list?
是否有必要创建一个包含整个列表的链接列表类:带有信息的节点和列表? or do i create a class for the list and a class for the nodes in the list?
还是为列表创建一个类,为列表中的节点创建一个类?
Thanks, 谢谢,
不要创建自己的列表-使用std :: list
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.