- 博客(6)
- 收藏
- 关注
原创 双向循环链表
一位叫贾老师写的,没有了联系方式放在只是方便自己看若有缘再见联系删除#include <stdio.h>#include <stdlib.h>#include <string.h>//功能:安全检查宏//@x:要检查的变量//@opt:操作符: ==,<,>//@y:要检查的值; if(NULL == p) { printf("p is null\n"); return -1; }//@z:返回值 SYSERR(NULL,==,
2021-11-09 17:12:43 215
原创 双向循环链表、冒泡、选择排序
#include<stdio.h>#include<stdlib.h>typedef struct node{ int data; struct node *nex; struct node *pre;}NODE;void Add_HData(NODE*,int);void Show_tdata(NODE*head);void Sort_the_bubbling(NODE*head);void Show_hdata(NODE*head);void s
2021-11-09 14:48:04 575
原创 冒泡选择排序
#include <stdio.h>//打印void show(int *a,int length){ int i,j; for(i=0;i<length;i++) { printf("a[%d]=%d\n",i,a[i]); } printf("------show end--------------------\n");}//冒泡排序 降序void maopao_sort(int *a,int length){ int i,j,temp; for
2021-11-09 14:36:58 44
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人