我有一个链表,怎么在链表当中插入一个节点,还有删除任意位置的节点

zsy_good zsy_good 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
public class Item
{
public Item Next;
}
public class Items
{
private Item head= new Item(); //保存链表的头地址
private Item temp; //用来记录当前的节点
private int count=0;
public int Count //返回整个链表的长度
{
get
{
return count;
}
}
//添加和删除方法怎么写呀
...全文
评论 5
收藏 已收藏
分享
返回顶部
zsy_good
C# 111,129 成员 642,538 内容