链表的建立和遍历算法

  这篇文章来复习一下数据结构中的链表的建立和遍历。 如下为实现的代码: // test.cpp : Defines the entry point for the console application. // #include "StdAfx.h" #include "iostream.h" struct node//定义结点的结构类型 { char data; node *next; };n
相关文章
相关标签/搜索