个人练习,主要是冒泡和二分查找的逻辑。比较简单,就不多写说明了
#include<stdio.h>/冒泡排序二分查找结合!
#include<Windows.h>
#include<math.h>
#include<string.h>
#include<time.h>
#pragma warning(disable:4996)
#define A 30
void FunMade(int *a, int num)
{
for (int b = 0; b < num; b++)
{
a[b] = rand() % 100 + 1;
}
}
void ShowFun(int *a,int num)
{
for (int c = 0; c < num; c++)
{
printf("a[%d]=%d \t"