📄 createlist.cpp
字号:
#include"chainbelth.h"
void Createlist(linklist &l,int n)
{
int i;
linklist p;
l=(linklist)malloc(sizeof(Lnode));
if(!l)
printf("Error!\n");
l->next=NULL;
for(i=n;i>0;--i){
p=(linklist)malloc(sizeof(Lnode));
if(!p)
printf("Error!\n");
scanf("%d",&p->data);
p->next=l->next;
l->next=p;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -