- 20050726085543205 Mifare
- CPP This sample demonstrates using the Microsoft Video Control to view ATSC digital television in a window. This is a simple ATL application that merely hosts the control and allows you to adjust the channel up or down. When VideoControl launches
- ado 一个简单的班级管理软件 通过ADO访问数据库
- 三维地形 <p><strong>GIS (Geographical Information System) is a computer support system that represents data using maps. It helps people access
- paypal付款接口,ipn编程(php程序) 与你的网站集成paypal付款
- edge_detect 基于小变换
文件名称:singlelink
介绍说明--下载内容来自于网络,使用问题请自行百度
单链表类的设计与实现,使用c++语言来描述-template<class type>class LinkList
template<class type>
class Node
{
friend class LinkList<type> //定义类LinkList<type>为友元
Node <type>*next //结点的指针域
public:
virtual ~Node()
type data //数据域
Node(Node<type>*pnext=NULL) //构造函数,用于构造头结点
Node(const type &item,Node<type>*pnext=NULL) //构造函数,用于构造非头结点
void SetNext(Node<type>*p){next=p } //修改结点的next域
void SetData(type x){data=x } //修改结点的data域
}
template<class type>
Node<type>::~Node()
{
}
template<class type>
Node<type>::Node(Node<type>*pnext) //构造函数,用于构造头结点
{
next=pnext
}
template<class type>
Node<type>::Node(const type &item,Node<type>*pnext) //构造函数,用于构造非头结点
{
data=item
next=pnext
}
template<class type>
class Node
{
friend class LinkList<type> //定义类LinkList<type>为友元
Node <type>*next //结点的指针域
public:
virtual ~Node()
type data //数据域
Node(Node<type>*pnext=NULL) //构造函数,用于构造头结点
Node(const type &item,Node<type>*pnext=NULL) //构造函数,用于构造非头结点
void SetNext(Node<type>*p){next=p } //修改结点的next域
void SetData(type x){data=x } //修改结点的data域
}
template<class type>
Node<type>::~Node()
{
}
template<class type>
Node<type>::Node(Node<type>*pnext) //构造函数,用于构造头结点
{
next=pnext
}
template<class type>
Node<type>::Node(const type &item,Node<type>*pnext) //构造函数,用于构造非头结点
{
data=item
next=pnext
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单链表类/zcx.cpp
单链表类/LinkList.h
单链表类/Node.h
单链表类
单链表类/LinkList.h
单链表类/Node.h
单链表类
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.