编程
Wushixianer
这个作者很懒,什么都没留下…
展开
-
静态链表
#include<stdio.h> #include<stdlib.h> #define MAXSIZE 1000 //链表最大长度为1000 typedef struct { int data; int cur; //cursor,为0时表示无指向 }Component,StaticLinkList[MAXSIZE]; i...原创 2020-03-02 23:02:53 · 132 阅读 · 0 评论 -
C语言实现链表
#include<stdio.h> #include<stdlib.h> typedef struct LNode{ int data; //数据 struct LNode *next; //后继节点的指针 }LNode,*LinkList; //LinkList是头指针类型...原创 2020-02-15 15:46:43 · 164 阅读 · 0 评论 -
C语言实现线性表
#include<stdio.h> #include<stdlib.h> #define InitSize 200 typedef struct { int data[InitSize]; //线性表数据 int length; //线性表长度 }SeqList; void InitList(SeqList *L)...原创 2020-02-11 21:24:17 · 414 阅读 · 0 评论 -
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
写结构体时遇到的问题“warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]” #include<stdio.h> #include<stdlib.h> #include<string.h> struct STU { char *name; ...原创 2020-01-27 21:16:24 · 5212 阅读 · 0 评论