![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
极客-杀生丸
这个作者很懒,什么都没留下…
展开
-
数据实验报告-链栈的基本操作
开出学期: 2019-2020 学年 第 一 学期实验时间: 8 周星期 二 ,5,6 节 专业:软件工程 实验性质:验证、设计姓名:杨镇彪 年级班:2018级一班 实验学时:2实验课程:数据结构 学号:201806014109 实验成绩:实验项目名称:10进制转换成16进制批阅: ...原创 2019-11-17 16:36:23 · 1521 阅读 · 0 评论 -
C语言冒泡排序
#include "stdio.h"void bubbleSort(int *p,int n){ int tmp; for(int i=0;i<n;i++){ for(int j=0;j<n-i-1;j++){ if(p[j]>p[j+1]){ tmp=p[j]; p[j]=p[j+1]; p[j+1]=tmp; } } }}void main(){ int a[]={2,3,1,4,5,6,7,8,0,9}; bubbleS原创 2020-12-04 18:14:34 · 117 阅读 · 0 评论 -
C语言选择排序
#include "stdio.h"void choiceSort(int *p,int n){ //printf("test"); int min_index; int tmp; for(int i=0;i<n;i++){ min_index=i; for(int j=i+1;j<n;j++){ if(p[min_index]>p[j]){ min_index=j; } } tmp=p[min_index]; p[min_index]=原创 2020-12-04 17:52:43 · 60 阅读 · 0 评论 -
用C语言随机生成10个不同的数
#include<stdio.h>#include<stdlib.h>#include<time.h>#define N 10//比较数组中是否存在两个相等的数字a[i]?=tint compare(int *a,int t){ for(int i=0;i<N;i++) if(a[i]==t) return 1; return 0;...原创 2019-12-29 15:14:48 · 7364 阅读 · 0 评论 -
c语言goto关键字用法
#include<stdio.h>#include<stdlib.h>void main(){system(“color 07”);int a=1;int b=1;goto end;b=a+2;end:printf("%d\n",b);}原创 2019-12-29 13:48:21 · 703 阅读 · 0 评论 -
C语言冒泡,插入,选择排序
#include<stdio.h>#include<stdlib.h>#include<time.h>#define N 10typedef struct BiTNode{ int data[N];}LineList;void InitArray(LineList &a){ srand((unsigned int)time(NULL)...原创 2019-12-23 15:31:54 · 151 阅读 · 0 评论