示例代码
Dorby .
我只想要一个我想要的生活
展开
-
顺序表示例代码
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>typedef struct{ int* data; int size;}SqList;// ADT// 只能通过函数接口修改操作结构体,不要直接访问结构体变量。// FILE//// 最佳实践// 1. 第一参数最好是结构...原创 2019-05-11 09:57:14 · 463 阅读 · 0 评论 -
链表示例代码
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>typedef struct { char name[20]; int age; bool sex;} Student;typedef Student LinkType;// 节点结构体typedef struct _Nod...原创 2019-05-11 09:57:27 · 319 阅读 · 0 评论