12 2021 档案
摘要:#include<iostream>using namespace std;void insert_sort(int a[], int n) { int i, j; int temp; for (i = 1; i<n; i++) { //循环从第2个元素开始 if (a[i - 1]>a[i]) {
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#include <Windows.h> int binsearch(int a[], int key, int low, int high) { int mid = (low + high) /2; if (low > hi
阅读全文
摘要:https://www.cnblogs.com/jjx2013/p/6223602.html https://www.cnblogs.com/saoge/p/15407779.html
阅读全文
摘要:#include <iostream>#include "stdio.h"#include "stdlib.h"#include "cstdlib"//syste()函数需要该头文件; using namespace std; #define OK 1#define ERROR 0#define O
阅读全文