⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createlist.cpp

📁 一个用于展示数据结构中插入
💻 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 + -