摘要:
#include <stdio.h> void straightinsert_sort(int R[],int n) { int i,j; int temp; for(i=1;i<=n;i++) { temp=R[i]; j=i-1; while(temp<R[j]) { R[j+1]=R[j]; 阅读全文
posted @ 2019-07-02 13:04
bobo哥
阅读(156)
评论(0)
推荐(0)
摘要:
//按姓名快速排序 #include <stdio.h> #include <string.h> #define N 10 typedef struct student { int num; char name[20]; char sex[2]; int age; }stu[N]; int quic 阅读全文
posted @ 2019-07-02 12:50
bobo哥
阅读(340)
评论(0)
推荐(0)
摘要:
源程序: #include <stdio.h> #include <stdlib.h> //二叉排序树节点描述 typedef int DataType; typedef struct Node { DataType key; struct Node *lchild, *rchild; struct 阅读全文
posted @ 2019-07-02 09:36
bobo哥
阅读(1698)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream> #include <algorithm> #include <functional> #include <iomanip> #include <stdlib.h> const int MAXSIZE = 10; using namespace std 阅读全文
posted @ 2019-07-02 09:17
bobo哥
阅读(1026)
评论(0)
推荐(0)