登录
首页 » c » 快速排序法C语言

快速排序法C语言

于 2022-03-12 发布 文件大小:1.04 kB
0 115
下载积分: 2 下载次数: 1

代码说明:

#include #define N 1024 int binarysearch(int *a,int n,int k) {   int left=0,right=n,i=0,middle;   while(lefta[middle])         left=middle+1;      else right=middle-1;   } return i; } void main() {  int n,i,a[N],k,l;      printf("请输入要比较元素个数:");      scanf("%d",&n);      printf(" ");      printf("按升序输入原始元素: ");     for(i=0;i

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 51黑论坛_s型加减速
    此为S型曲线拟合的步进电机加减速程序,51MCU,keil平台。不是我写的。哈哈(This program is S curve fitting of the step motor add and subtract program. Need 51MCU and KEIL platforms)
    2020-12-31 10:08:59下载
    积分:1
  • 数字图像处理汇总 VC++
    该程序是数字图像的汇总,基于MFC框架实现了对图像的打开保存,几何形态学,阈值变换以及特征提取等操作。 
    2022-01-26 07:26:13下载
    积分:1
  • GetWebSource
    通过 afxinet库中函数 获得网页发过来的代码 并保存(Obtained by afxinet library functions and the code page sent me to save)
    2011-07-12 14:11:51下载
    积分:1
  • ADS1120
    ADS1120芯片的代码,可用于硬件开发。STM32、单片机(The ADS1120 chip code can be used for hardware development. STM32, SCM)
    2021-03-11 18:59:26下载
    积分:1
  • list
    用C++写的链表操作,可以作为一个简易的文本编辑器(list)
    2009-12-20 19:23:45下载
    积分:1
  • C语言基础
    本章介绍了 C 语言的一些基本信息,这些信息对处理 FLUENT 的 UDF 很有帮助。本章首先假定你有一些编程经验而不是 C 语言的初级介绍。本章不会介绍诸如 while-do 循环,联合,递归,结构以及读写文件的基础知识。如果你对 C语言不熟悉可以参阅 C 语言的相关书籍。(This chapter introduces some basic information of C language, which is very helpful to handle UDF of FLUENT. This chapter first assumes that you have some programming experience rather than a preliminary introduction to C language. This chapter does not cover the basics of while-do loops, unions, recursions, structures, and reading and writing files. If you are not familiar with the C language, you can refer to the related books in C language.)
    2018-09-27 16:09:35下载
    积分:1
  • matcom
    利用MATCOM可以实现VC++与MATLAB的混合编程,本例子实现了独立与具体开发环境的绘图的方法 (MATCOM can be achieved using VC and MATLAB mixed programming, The example of the independence and achieve specific development environment mapping methods)
    2007-07-04 18:54:14下载
    积分:1
  • VIC_vect_eint
    说明:  在周立功lpc2100上实现向量中断,随着按键的按下和放开,可实现LED的点亮熄灭。(Meritorious service in the weeks to achieve lpc210x interrupt vector, with the keys and open the press, the LED light can be extinguished)
    2009-08-13 21:28:27下载
    积分:1
  • WebBrowser控件上的网页与Winform 交互 实例下载
      本文旨在演示WebBrowser控件上的代码(Javascript、Html Dom)与Winform控件本身的交互,实现在WebBrowser的C/S程序中调用其网页上的Javascript函数,甚至反过来在网页的Javascript代码中调用C/S程序中的方法。 以下示例点到为止,比如“B/S Dom对象的事件”示例中,除了用onchange/onpropertychange之外,其他任何支持的html事件均能使用,如onclick、onkeydown等等。 例子中没有详细列出可以应用的方式和使用范围,但我们加以思考,触类旁通,可以实现很多很多功能的。
    2013-06-20下载
    积分:1
  • Safety_Features_of_NEC_Electronics
    说明:  
    2009-05-29 16:31:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载