Simply Linked Implementation remove函数
来源:互联网 发布:人工智能虚拟系统 编辑:程序博客网 时间:2024/06/06 15:39
SimplyLinked Implementation
Template<classList_entry>
Error_codeList <List_entry>::remove(int position,const List_entry &x)
{
If(position<0||position>count)
Returnrange_error;
Node<List_entry>*new_node,*previous,*following;
If(position>0)
{
previous=set_position(position-1);
previous=following->next//Following=previous->next;
}
//Elsefollowing =head;
//New_code=newNode<List_entry>(x,following);
If(new_node==NULL)
Return underflow;//overflow;
If(position==0)
Head=N//Head=new_node;
Else
Previous->next=new_node;
Count--;
Returnsuccess;
}
- Simply Linked Implementation remove函数
- Contiguous Implementation remove函数
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- Remove Linked List Elements
- classloader知识点
- 康托展开
- Android设备中实现Orientation Sensor(图)兼谈陀螺仪
- 手机AT指令集
- Java程序实验1
- Simply Linked Implementation remove函数
- 中国首研拟态计算机,可实现自适应修改结构,类似大脑
- 2013.9.23
- Android App上采用支付宝进行快捷支付
- Python 入门教程 8 ---- Python Lists and Dictionaries
- css cursor
- Java-家中的电视机
- 匹配滤波器的物理意义
- strncpy函数