2020年3月8日

c语言实现队列

摘要: 用数组或者链表实现队列,先进先出 queue.h // // Created by gxf on 2020/3/8. // #ifndef UNTITLED_QUEUE_H #define UNTITLED_QUEUE_H void initQueue(); void enqueue(int dat 阅读全文

posted @ 2020-03-08 19:41 luckygxf 阅读(882) 评论(0) 推荐(0) 编辑

c 链表

摘要: list.h // // Created by gxf on 2020/3/8. // #ifndef UNTITLED_LINKLIST_H #define UNTITLED_LINKLIST_H typedef struct ListNodeS { int data; struct ListNo 阅读全文

posted @ 2020-03-08 11:48 luckygxf 阅读(123) 评论(0) 推荐(0) 编辑

c assert函数

摘要: 条件为false,调用abort函数退出进程,在线程中执行也会导致进程退出 // // Created by gxf on 2020/3/8. // #include "linklist.h" #include <assert.h> #include <stdio.h> #include <stdl 阅读全文

posted @ 2020-03-08 11:05 luckygxf 阅读(257) 评论(0) 推荐(0) 编辑

导航