如何在c ++中创建一个简单的遍历链表和双链表的程序? [英] How to make a simple program of traversing of linked list and doublly linked list in c++?

查看:83
本文介绍了如何在c ++中创建一个简单的遍历链表和双链表的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

链接列表和循环链表的程序。

Program for linked list and circular linked list.

推荐答案

编码,当然。如果您需要链接列表的背景知识,那么起点可以是维基百科页面 [ ^ ]。

好​​读的是Wirth的旧书:算法+数据结构=程序 [ ^ ]。
Coding, of course. If you need some background on linked list, a starting point could be the Wikipedia page[^].
A good read is the oldie-goldie Wirth's book: "Algorithms + Data Structures = Programs"[^].


读取本教程 [ ^ ]在单链表上然后阅读本教程 [< a href =http://codingfreak.blogspot.com/2012/02/implementation-of-doubly-linked-list-in.htmltarget =_ blanktitle =New Window> ^ ]在双重链表上。



如果您需要更多记住Google是您的朋友,您可以使用它来查找许多教程在互联网上。

阅读完这些文章后,写下你自己的一些代码。如果您遇到问题,请将代码发布到出现问题的位置并明确说明问题,包括任何错误消息。我们很乐意帮助您解决问题。
Read this tutorial[^] on a singly linked list then read this tutorial[^] on a doubly linked list.

If you need more remember that Google is your friend, you can use it to find many tutorials on the internet.
After you have read those articles write some of your own code. If you have a problem, post the code where you are having the problem AND clearly state the problem including any error messages. We will then be glad to help you solve your problem.


这篇关于如何在c ++中创建一个简单的遍历链表和双链表的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆