链表-c
爱码仕1024
目前专注于Java后台开发
展开
-
c语言中[Error] variable or field 'CreatList' declared void错误原因分析
#include <stdio.h>#include <stdlib.h>struct LNode{ int data; LNode *next;}*List,LNode;void CreatList(List &L, int n){//创建一个含有n个元素的单链表 List p; L=(List)malloc(sizeof(struct LNode)); L原创 2017-06-14 15:30:19 · 51251 阅读 · 3 评论 -
单链表某一元素的删除
为啥总是犯十分智障的错误!!!错误代码:#include <stdio.h>#include <stdlib.h>//删除元素 typedef struct LNode{ int data; LNode *next;}*List,LNode;void Creat(List &L,int n){//创建链表 List p;//用于循环创建的节点 L=(List)ma原创 2017-06-14 19:48:25 · 658 阅读 · 0 评论 -
单链表元素的插入
这一次还挺顺利。。。。#include <stdlib.h>#include<stdio.h>typedef struct LNode{ int data; LNode *next;}*List,LNode;void Creat(List &L,int n){//创建链表 List p;//用于循环创建的节点 L=(List)malloc(sizeof(stru原创 2017-06-14 20:16:07 · 7134 阅读 · 1 评论