单链表的基本操作代码(单链表基本操作)

本文目录
- 单链表基本操作
- 寻求一个C++程序,关于单链表的基本操作的
- 数据结构求代码 实现单链表的基本运算 要求是:依次用头插法插入a、b、c、d、e元素 求代码!!
- 单链表的基本操作操作,类C语言
- 怎样编写一个完整的程序,实现单链表的建立、插入、删除、输出等基本操作
单链表基本操作
结果如下:完整的代码如下:#代码《stdio.h》#包含《stdlib.h》type def结构lnode{char数据;lnode*下一步;}*lnondeptr;;lnodeptr集邮器()//初始化标头lnodeptr head=(lnodeptr)maloc(除法);头部》数据=0;头部》下一步=nodeptr;节点;//临时节点字符数据;当(真){scanf(\"%c\",&;数据);如果(数据=’0’|数据=’n’|数据=’r’|数据=’t’){连接;}如果(数据=’!’)//输入感叹号停止插入节点{Printf(\"输入链表元素到结尾。n\");中断;}如果(数据》=’a’&;数据《=’z’){tnode=(lnodeptr)maloc(除法(lnode));数据=数据;什么?什么?/*?数据字段分配?*/tnote-》下一个=大写-》下一个=tnote;}包含{printf(\"输入字符必须是大写字母。n\");}retun头部;}/**加密功能,通过将所有连接到头部的节点的偏移位向前移动来加密,但不支持偏移量中的节点数,而不支持链表@param头节点@param officet节点中的节点数。(i=0;i《偏移量)的位置*/vid加密列表(Lodotype Pthead,int偏移量)i++){如果(tnode-》下一个!=空){tnode=tnode-》下一个;}}如果(i=偏移){lnode ptr newhead=tnode;lno deptr尾端=tnode;而(尾端-》下一个!=空){尾部=尾部》下;}尾部-》下一个=头部-》下一个;=null){如果(tnode-》下一个!=newhead){tnode=tnode-》下一个;{tnode-》下一个=null;破;}头-》下一个=newhead;;}代表{printf(\"不支持移动\");}空列表(lnodeptr head){如果(head-》下一个!=空)=nonodeptr tnode=下一个;而(tnode-gt;下一个!=空){Printf(\"%c\",tnote-》数据);tnote=tnote-》下一个;}Printf(\"%c\",tnote-》数据);}}主();{lnodeptr列表=集邮者();Printf(由\"n创建的链接列表如下:n\");listprint(列表);加密列表(列表,3);Printf(\"n所有节点向前移动3点后的链接列表如下:n\");listprint(列表);Printf(\"n\");返回0;如果你看不懂密码,你可以问我。
寻求一个C++程序,关于单链表的基本操作的
#include
《iostream》typedef
char
Type;//栈类
class
Stack{
public:
//构造和析构函数
Stack():m_pFirstNode(0){}
~Stack(){clear();}
public:
//操作函数
bool
push(const
Type&
data);//压栈
bool
pop();//出栈
Type&
get();//得到栈顶的数据
int
size()const;//得到大小
bool
empty()const{return
m_pFirstNode==0;}//是否为空
void
clear();
//清空
private:
struct
Node{
Type
data;
Node*
pNextNode;
};
Node*
m_pFirstNode;//首节点的指针
};bool
Stack::push(const
Type&
data){
Node*
pNewNode
=
new
Node;
if(pNewNode!=0){
pNewNode-》data
=
data;
pNewNode-》pNextNode
=
m_pFirstNode;
m_pFirstNode
=
pNewNode;
return
true;
}else{
return
false;
}
}bool
Stack::pop(){
if(m_pFirstNode!=0){
Node*
pNextNode
=
m_pFirstNode-》pNextNode;
delete
m_pFirstNode;
m_pFirstNode
=
pNextNode;
return
true;
}else{
return
false;
}
}Type&
Stack::get(){
if(m_pFirstNode!=0){
return
m_pFirstNode-》data;
}else{
return
*reinterpret_cast《Type*》(0);
}
}int
Stack::size()
const{
int
counter
=
0;
Node*
pNode
=
m_pFirstNode;
while(pNode!=0){
++counter;
pNode
=
pNode-》pNextNode;
}
return
counter;
}void
Stack::clear(){
if(m_pFirstNode!=0){
Node*
pNode
=
m_pFirstNode;
do{
Node*
pNextNode
=pNode-》pNextNode;
delete
pNode;
pNode
=
pNextNode;
}while(pNode!=0);
m_pFirstNode
=
0;
}
}//队列类
class
Queue{
public:
//构造和析构函数
Queue():m_pFirstNode(0){}
~Queue(){clear();}
public:
//操作函数
bool
add(const
Type&
data);//入队列
bool
remove();//出队列
Type&
get();//得到队列的数据
int
size()const;//得到大小
bool
empty()const{return
m_pFirstNode==0;}//是否为空
void
clear();
//清空private:
struct
Node{
Type
data;
Node*
pNextNode;
}; Node*
m_pFirstNode;//首节点的指针};bool
Queue::add(const
Type&
data){
Node*
pNewNode
=
new
Node;
if(pNewNode!=0){
pNewNode-》data
=
data;
pNewNode-》pNextNode
=
0;
if(m_pFirstNode
==
0){
m_pFirstNode
=
pNewNode;
}else{
Node*
pLastNode
=
m_pFirstNode;
while(pLastNode-》pNextNode
!=
0){
pLastNode
=
pLastNode-》pNextNode;
}
pLastNode-》pNextNode
=
pNewNode;
}
return
true;
}else{
return
false;
}
}bool
Queue::remove(){
if(m_pFirstNode!=0){
Node*
pNextNode
=
m_pFirstNode-》pNextNode;
delete
m_pFirstNode;
m_pFirstNode
=
pNextNode;
return
true;
}else{
return
false;
}
}Type&
Queue::get(){
if(m_pFirstNode!=0){
return
m_pFirstNode-》data;
}else{
return
*reinterpret_cast《Type*》(0);
}
}int
Queue::size()
const{
int
counter
=
0;
Node*
pNode
=
m_pFirstNode;
while(pNode!=0){
++counter;
pNode
=
pNode-》pNextNode;
}
return
counter;
}void
Queue::clear(){
if(m_pFirstNode!=0){
Node*
pNode
=
m_pFirstNode;
do{
Node*
pNextNode
=pNode-》pNextNode;
delete
pNode;
pNode
=
pNextNode;
}while(pNode!=0);
m_pFirstNode
=
0;
}
}//二叉树的节点
struct
BinaryTreeNode{
Type
data;
BinaryTreeNode*
pLeftNode;
BinaryTreeNode*
pRightNode;
};//输出二叉树的节点
void
outputBinaryTreeNode(BinaryTreeNode*
pNode){
if(pNode!=0){
std::cout
《《
pNode-》data;//NLR前序遍历
outputBinaryTreeNode(pNode-》pLeftNode);
outputBinaryTreeNode(pNode-》pRightNode);
}
return;
}const
int
Id_None
=
0;
const
int
Id_Island_A
=
1;
const
int
Id_Island_B
=
2;
const
int
Id_Island_C
=
3;
const
int
Id_Island_D
=
4;const
int
MaxCanReachSize
=
4;struct
MapNode{
int
id;
int
canReach;
};int
main(){ {
Stack
stack;
stack.push(’a’);
stack.push(’b’);
stack.push(’c’);
while(!stack.empty()){
std::cout
《《
stack.get();
stack.pop();
}
std::cout
《《
std::endl;
int
a
=
123456;
stack.push(’0’+a%10);
a/=10;
while(a!=0){
stack.push(’0’+a%10);
a/=10;
}
while(!stack.empty()){
std::cout
《《
stack.get();
stack.pop();
}
}
{
Queue
queue;
queue.add(’a’);
queue.add(’b’);
queue.add(’c’);
while(!queue.empty()){
std::cout
《《
queue.get();
queue.remove();
}
std::cout
《《
std::endl;
}
{
BinaryTreeNode
treeNode;
treeNode.data
=
’a’;
treeNode.data
=
’b’;
treeNode.data
=
’c’;
treeNode.pLeftNode
=
&treeNode;
treeNode.pRightNode
=
&treeNode;
treeNode.pLeftNode
=
0;
treeNode.pRightNode
=
0;
treeNode.pLeftNode
=
0;
treeNode.pRightNode
=
0;
BinaryTreeNode*
pTreeNode
=
&treeNode;
outputBinaryTreeNode(pTreeNode);
}
{
MapNode
mapNode;
mapNode.id
=
Id_Island_A;
mapNode.id
=
Id_Island_B;
mapNode.id
=
Id_Island_C;
mapNode.id
=
Id_Island_D; mapNode
=
Id_Island_B;
mapNode
=
Id_Island_C;
mapNode
=
Id_Island_D;
mapNode
=
Id_None; mapNode
=
Id_Island_C;
mapNode
=
Id_None;
mapNode
=
Id_None;
mapNode
=
Id_None; mapNode
=
Id_Island_A;
mapNode
=
Id_Island_B;
mapNode
=
Id_None;
mapNode
=
Id_None;
mapNode
=
Id_Island_A;
mapNode
=
Id_None;
mapNode
=
Id_None;
mapNode
=
Id_None;
}
}三种数据结构,原来写的,自己参考一下
数据结构求代码 实现单链表的基本运算 要求是:依次用头插法插入a、b、c、d、e元素 求代码!!
#include 《stdio.h》
#include 《stdlib.h》
#include 《string.h》
#define elemType char
#define status int
#define OVERFLOW -1
#define ERROR 0
#define OK 1
/* 单链表数据结构 */
typedef struct lNode {
elemType data;
struct lNode *next;
} lNode, *linkList;
/******************************** 以下为函数声明 ********************************/
void initList (linkList *L);/* 初始化 */
status listInsertNode (linkList L, elemType e);/* 单链表第1个位置插入新元素 */
status listPrint (linkList L);/* 输出链表 */
/******************************** 以上为函数声明 ********************************/
/* 初始化 */
/* 操作结果:构造一个空的单链表L */
void initList (linkList *L) {
*L = (linkList) malloc (sizeof (struct lNode)); /* 产生头节点,并使L指向此头节点 */
if(!*L) /* 内存分配失败 */
exit (OVERFLOW);
(*L)-》next = NULL; /* 指针域为空 */
}
/* 单链表指定位置插入新元素 */
/* 操作结果:在带头结点的单链表L中第1个位置之前插入元素e */
status listInsertNode (linkList L, elemType e) {
int j=0;
linkList p=L,s;
/* 生成新结点,并插入L中 */
s = (linkList) malloc (sizeof (struct lNode));
s-》data = e;
s-》next = p-》next;
p-》next = s;
return OK;
}
/* 输出链表 */
status listPrint (linkList L) {
linkList p = L-》next; /* p指向第一个结点 */
while (p!=NULL) {
printf ("%c\n",p-》data);
p = p-》next;
}
return OK;
}
int main (void) {
linkList L;
elemType *e;
/*初始化链表*/
initList (&L);
/*头插法插入5个元素*/
listInsertNode (L, ’a’);
listInsertNode (L, ’b’);
listInsertNode (L, ’c’);
listInsertNode (L, ’d’);
listInsertNode (L, ’e’);
puts ("已在链表中插入a~e的5个元素!");
putchar (’\n’);
/*打印链表*/
puts ("当前链表内容为:");
listPrint (L);
putchar (’\n’);
getch ();
return 0;
}
运行结果
单链表的基本操作操作,类C语言
#include
《
iostream
》
#include
《
string
》
using
namespace
std;
#define
NULL
0
struct
list
{
string
name;
long
num;
string
sex;
list
*
next;
};
int
n;
void
main()
{
list
*
creat(void);
list
*
del(list
*
head,long
num);
list
*
insert(list
*
head,list
*
stud);
void
print(list
*
head);
list
*
head,*
list_;
long
del_num;
bool
quit_del
=
false;
bool
quit_insert
=
false;
cout
《《
"Menu:
"
《《
endl;
cout
《《
"1--创建链表"
《《
endl;
cout
《《
"2--删除结点"
《《
endl;
cout
《《
"3--添加结点"
《《
endl;
cout
《《
"4--察看链表"
《《
endl;
int
n
=
0;
cin
》》
n;
if
(n
!=
1)
cout
《《
"没有结点,请创建"
《《
endl
《《
endl;
n
=
1;
to:switch(n)
{
case
1:
cout
《《
endl;
cout
《《
"请创建链表(格式:
序号
姓名
姓别(F
or
M))
-_-||"
《《
endl;
head
=
creat();
cout
《《
endl
《《
"请输入
1,2,3,4(Menu),键入其它终止
_";
break;
case
2:
quit_del
=
false;
cout
《《
endl
《《
"
-_-||
请输入要删除的序号:";
cin
》》
del_num;
while
(
!quit_del
)
{
head
=
del(head,del_num);
print(head);
cout
《《
"继续?
***
y
*****
n
***";
char
param_del;
cin
》》
param_del;
if
(
param_del
==
’y’)
{
cout
《《
"-_-||
请输入要删除的序号:
";
cin
》》
del_num;
}
else
if(
param_del
!=
’n’)
{
cout
《《
"输入有误,无法判断,返回菜单"
《《
endl;
quit_del
=
true;
break;
}
else
{
quit_del
=
true;
break;
}
}
cout
《《
endl
《《
"请输入
1,2,3,4(Menu),键入其它终止
_";
break;
case
3:
quit_insert
=
false;
cout
《《
endl
《《
"-_-||
请输入要添加的结点:
"
《《
endl;
list_
=
new
list;
cin
》》
list_-》num
》》
list_-》name
》》
list_-》sex;
while
(
!quit_insert
)
{
head
=
insert(head,list_);
cout
《《
"继续?
***
y
*****
n
***";
char
param_insert;
cin
》》
param_insert;
if
(
param_insert
==
’y’)
{
cout
《《
endl
《《
"-_-||
请输入要添加的结点:
"
《《
endl;
list_
=
new
list;
cin
》》
list_-》num
》》
list_-》name
》》
list_-》sex;
}
else
if
(
param_insert
!=
’n’
)
{
cout
《《
"输入有误,无法添加,返回菜单"
《《
endl;
quit_insert
=
true;
break;
}
else
{
quit_insert
=
true;
break;
}
}
cout
《《
endl
《《
"请输入
1,2,3,4(Menu),键入其它终止
_";
break;
case
4:
print(head);
cout
《《
endl
《《
"请输入
1,2,3,4(Menu),键入其它终止
_";
break;
default:
cout
《《
"呃,又出错误了"
《《
endl;
}
cin
》》
n;
if
(n
==
1)
{
cout
《《
"结点已被创建,无法重复"
《《
endl;
n
=
4;
}
while
(
n
==
2
||
n
==
3
||
n
==
4)
{
goto
to;
}
}
list
*
creat(void)
{
bool
quit_creat
=
false;
list
*
head;
list
*
p1,
*
p2;
n
=
0;
p1
=
p2
=
new
list;
cin
》》
p1-》num
》》
p1-》name
》》
p1-》sex;
head
=
NULL;
while
(
!quit_creat
)
{
n
=
n
+
1;
if
(n
==
1)
head
=
p1;
else
p2-》next
=
p1;
p2
=
p1;
cout
《《
"继续?
***
y
*****
n
***";
char
param_creat;
cin
》》
param_creat;
if
(param_creat
==
’y’)
{
p1
=
new
list;
cin
》》
p1-》num
》》
p1-》name
》》
p1-》sex;
}
else
if
(param_creat
!=
’n’)
{
cout
《《
"输入有误,无法完成继续创建,返回菜单"
《《
endl;
quit_creat
=
true;
break;
}
else
{
quit_creat
=
true;
break;
}
}
p2-》next
=
NULL;
return
(head);
}
list
*
del(list
*
head,long
num)
{
list
*
p1,
*
p2;
if
(head
==
NULL)
{
cout
《《
"该链表为空,无法删除-_-||"
《《
endl;
return
(head);
}
p1
=
head;
while
(num
!=
p1-》num
&&
p1-》next
!=
NULL)
{
p2
=
p1;
p1
=
p1-》next;
}
if
(num
==
p1-》num)
{
if
(p1
==
head)
head
=
p1-》next;
else
p2-》next
=
p1-》next;
delete
p1;
cout
《《
"o(∩_∩)o
删除:
"
《《
num
《《
endl;
n
=
n
-
1;
}
else
cout
《《
endl
《《
"没有
-_-||
找到:
"
《《
num
《《
endl;
return
(head);
}
list
*
insert(list
*
head,list
*
stud)
{
list
*
p0,*
p1,
*
p2;
p1
=
head;
p0
=
stud;
if
(head
==
NULL)
{
head
=
p0;
p0-》next
=
NULL;
}
else
{
while
((p0-》num
》
p1-》num)
&&
(p1-》next
!=
NULL))
{
p2
=
p1;
p1
=
p1-》next;
}
if
(p0-》num
《=
p1-》num)
{
if
(head
==
p1)
head
=p0;
else
p2-》next
=
p0;
p0-》next
=
p1;
}
else
{
p1-》next
=
p0;
p0-》next
=
NULL;
}
}
n
=
n
+
1;
return
(head);
}
void
print(list
*
head)
{
list
*
p;
cout
《《
endl
《《
"这"
《《
n
《《
"条记录顺序如下:
"
《《
endl;
p
=
head;
if
(head
!=
NULL)
do
{
cout
《《
p-》num
《《
"
"
《《
p-》name
《《
"
"
《《
p-》sex
《《
endl;
p
=
p-》next;
}while(p
!=
NULL);
}
//以前做的一个..应该符合你的要求
怎样编写一个完整的程序,实现单链表的建立、插入、删除、输出等基本操作
typedef int Elemtype;\x0d\x0a\x0d\x0atypedef int status;\x0d\x0a\x0d\x0a#define OVERFLOW -2\x0d\x0a\x0d\x0a#define OK 1\x0d\x0a\x0d\x0a#define ERROR -1\x0d\x0a\x0d\x0a#include "stdio.h"\x0d\x0a\x0d\x0a#include "stdlib.h"\x0d\x0a\x0d\x0atypedef struct LNode {\x0d\x0a\x0d\x0a Elemtype data;\x0d\x0a\x0d\x0a struct LNode *next;\x0d\x0a\x0d\x0a}*linklist;\x0d\x0a\x0d\x0a//构造链表\x0d\x0a\x0d\x0avoid Create_Linklist(linklist &L)\x0d\x0a{\x0d\x0a linklist p;\x0d\x0a p=(linklist)malloc(sizeof(LNode));\x0d\x0a if(!p)\x0d\x0a exit(OVERFLOW);\x0d\x0a L=p;\x0d\x0a L-》next =NULL;\x0d\x0a}\x0d\x0a\x0d\x0a//节点插入\x0d\x0avoid Insert_Linklist(linklist &L)\x0d\x0a{\x0d\x0a linklist p;\x0d\x0a int n,i;\x0d\x0a printf("请输入插入节点的个数n: ");\x0d\x0a scanf("%d",&n);\x0d\x0a getchar();\x0d\x0a for(i=n;i》0;i--)\x0d\x0a {\x0d\x0a p=(linklist )malloc(sizeof(LNode));\x0d\x0a scanf("%d",&p-》data);\x0d\x0a p-》next=L-》next ;\x0d\x0a L-》next =p;\x0d\x0a }\x0d\x0a}\x0d\x0a\x0d\x0a//遍历输出并输出长度\x0d\x0a status Visit_linklist(linklist &L)\x0d\x0a{\x0d\x0a linklist p;\x0d\x0a int i=1;\x0d\x0a p=L-》next ;\x0d\x0a if(L-》next==NULL)\x0d\x0a return ERROR;\x0d\x0a while(p-》next !=NULL)\x0d\x0a {\x0d\x0a printf("%d ",p-》data );\x0d\x0a p=p-》next ;\x0d\x0a i++;\x0d\x0a }\x0d\x0a printf("%d\n",p-》data );\x0d\x0a printf("长度为:%d\n",i);\x0d\x0a return OK;\x0d\x0a}\x0d\x0a\x0d\x0a //查找值为x的直接前驱结点q并输出\x0d\x0a void Search_linklist(linklist &L)\x0d\x0a {\x0d\x0a int x,k=0;\x0d\x0a linklist p=L,q;\x0d\x0a printf("输入x: ");\x0d\x0a scanf("%d",&x);\x0d\x0a getchar();\x0d\x0a if(L-》next ==NULL)\x0d\x0a printf("该表为空 !\n");\x0d\x0a while(p-》next!=NULL)\x0d\x0a {\x0d\x0a q=p;\x0d\x0a if(p-》next -》data ==x)\x0d\x0a {\x0d\x0a printf("%d ",q-》data );\x0d\x0a k=1;\x0d\x0a }\x0d\x0a p=p-》next ;\x0d\x0a }\x0d\x0a if(p-》next &&p-》data ==x)\x0d\x0a {\x0d\x0a printf("%d ",p-》data );\x0d\x0a k=1;\x0d\x0a }\x0d\x0a if(k==0)\x0d\x0a printf("未找到值为%d的结点\n",&x);\x0d\x0a printf("\n");\x0d\x0a }\x0d\x0a\x0d\x0a //删除节点\x0d\x0a status Delete_linklist(linklist &L)\x0d\x0a {\x0d\x0a linklist p,q;\x0d\x0a int k=0,x;\x0d\x0a\x0d\x0a printf("请输入删除节点的值x: ");\x0d\x0a scanf("%d",&x);\x0d\x0a getchar();\x0d\x0a\x0d\x0a if(L-》next ==NULL)\x0d\x0a return ERROR;\x0d\x0a p=L;\x0d\x0a q=L-》next ;\x0d\x0a while(q!=NULL)\x0d\x0a if(q-》data ==x)\x0d\x0a { \x0d\x0a k=1;\x0d\x0a p=q ;\x0d\x0a p-》next =q-》next ; \x0d\x0a free(q);\x0d\x0a q=p-》next ;\x0d\x0a }\x0d\x0a else\x0d\x0a {\x0d\x0a p=q ;\x0d\x0a q=p-》next ;\x0d\x0a }\x0d\x0a if(k==0)\x0d\x0a printf("表中没有值为%d的结点!\n",&x);\x0d\x0a return OK;\x0d\x0a }\x0d\x0a \x0d\x0a //链表逆置 \x0d\x0a void ListInverse_linkliast(linklist &L)\x0d\x0a {\x0d\x0a linklist k,p,q;\x0d\x0a p=L;\x0d\x0a while (p-》next !=NULL)\x0d\x0a {\x0d\x0a p=p-》next ;\x0d\x0a }\x0d\x0a k=p;\x0d\x0a while (L-》next !=p)\x0d\x0a {\x0d\x0a q=L-》next ;\x0d\x0a L-》next = q-》next ;\x0d\x0a k-》next =q;\x0d\x0a }\x0d\x0a }\x0d\x0a\x0d\x0a //链表奇偶分解\x0d\x0a\x0d\x0a void Break_linklist (linklist &La,linklist &Lb)\x0d\x0a {\x0d\x0a linklist p,q;\x0d\x0a p=La-》next; \x0d\x0a q=Lb;\x0d\x0a while(p-》next!=NULL)\x0d\x0a {\x0d\x0a if(p-》data %2==0)\x0d\x0a {\x0d\x0a q-》next =p;\x0d\x0a q=q-》next ;\x0d\x0a }\x0d\x0a p=p-》next ;\x0d\x0a }\x0d\x0a if(p-》data %2==0)\x0d\x0a {\x0d\x0a q-》next =p;\x0d\x0a q=q-》next ;\x0d\x0a }\x0d\x0a }\x0d\x0a \x0d\x0a //主菜单\x0d\x0a\x0d\x0a void main()\x0d\x0a {\x0d\x0a linklist L1,L2;\x0d\x0a printf(" (1) 建立带头节点的单链表\n");\x0d\x0a printf(" (2) 插入节点\n");\x0d\x0a printf(" (3) 计算链表长度并输出单链表\n");\x0d\x0a printf(" (4) 查找值为x的直接前驱结点并输出其值\n");\x0d\x0a printf(" (5) 删除节点值为x的结点\n");\x0d\x0a printf(" (6) 逆置单链表结点\n");\x0d\x0a printf(" (7) 单链表奇偶分解\n");\x0d\x0a\x0d\x0a int choice;\x0d\x0a printf(" 请输入选择:");\x0d\x0a while(scanf("%d",&choice))\x0d\x0a {\x0d\x0a getchar();\x0d\x0a printf("\n\n");\x0d\x0a switch(choice)\x0d\x0a {\x0d\x0a case 1:\x0d\x0a Create_Linklist(L1);\x0d\x0a break;\x0d\x0a case 2:\x0d\x0a Insert_Linklist(L1);\x0d\x0a break;\x0d\x0a case 3:\x0d\x0a Visit_linklist(L1);\x0d\x0a break;\x0d\x0a case 4:\x0d\x0a Search_linklist(L1);\x0d\x0a break;\x0d\x0a case 5:\x0d\x0a Delete_linklist(L1);\x0d\x0a break;\x0d\x0a case 6:\x0d\x0a ListInverse_linkliast(L1);\x0d\x0a break;\x0d\x0a case 7:\x0d\x0a Create_Linklist(L2);\x0d\x0a Break_linklist (L1,L2);\x0d\x0a break;\x0d\x0a default: \x0d\x0a printf(" 输入有误!");\x0d\x0a break;\x0d\x0a }\x0d\x0a }\x0d\x0a }

更多文章:
物流调研ppt免费模板下载大全(ppt模板免费下载的网站有哪些)
2025年9月9日 05:15
switch default用法(C语言中的switch和default是什么意思)
2025年7月21日 18:15
js效果在浏览器上显示不出来(为什么360浏览器打开javascript插件时,看不到JS的效果,而IE和火狐浏览器可以)
2026年5月5日 17:45
js获取数组的最后一个元素(如何在JavaScript数组中选择最后一个元素)
2026年5月19日 23:00
服务器地址是什么(”服务器地址” 是什么 “端口号”是什么分别填写)
2025年7月25日 02:00
二维动画制作软件(二维动画制作软件CreatureAnimationPro的作用介绍)
2025年9月19日 14:30
file上传文件(ajax的Fileupload怎样实现多文件上传)
2026年5月26日 05:45
XxlJob集成GooFlow工作流?java要学到什么什么程度才能参加工作
2026年2月13日 23:00
javalibrary进入方法(java.library.path在哪)
2026年8月9日 10:00
淘宝客程序源码三合一(想购买个淘客app 哪个淘客app好)
2026年1月24日 13:45
text和textarea区别(在java里面textarea 是什么,详细作用)
2025年8月31日 19:00
powerful sense of fun(关于“电”的英语作文好句有哪些)
2026年8月20日 12:00
documents好用吗(iphone哪个视频压缩app好用)
2025年6月6日 06:15












