登录
首页 » 电子书 » 通常的冒泡是单向的,而这里是双向的,也就是说还要进行反向的工作。 代码看起来复杂,仔细理一下就明白了,是一个来回震荡的方式。 写这段代码的作者认为这样可以在冒泡...

通常的冒泡是单向的,而这里是双向的,也就是说还要进行反向的工作。 代码看起来复杂,仔细理一下就明白了,是一个来回震荡的方式。 写这段代码的作者认为这样可以在冒泡...

于 2022-03-02 发布 文件大小:2.37 kB
0 195
下载积分: 2 下载次数: 1

代码说明:

通常的冒泡是单向的,而这里是双向的,也就是说还要进行反向的工作。 代码看起来复杂,仔细理一下就明白了,是一个来回震荡的方式。 写这段代码的作者认为这样可以在冒泡的基础上减少一些交换(我不这么认为,也许我错了)。 反正我认为这是一段有趣的代码,值得一看。-The bubble is usually a one-way, and here is a two-way, that is to say the job would also like to reverse. The complexity of the code look carefully you will understand the rationale for it is a shock the way back and forth. Author of Writing the code that this can reduce the bubble on the basis of the exchange (I do not think so, I may be wrong). Anyway, I think this is a fun code, worth a visit.

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

发表评论

0 个回复

  • The software provides a direct interface to operate the scanner example, Visual...
    本软件提供了一个直接操作扫描仪接口的例子,采用Visual C++语言规范编程.相信会对 从事扫描仪接口编程的朋友们有一定帮助-The software provides a direct interface to operate the scanner example, Visual C programming language specification. I believe it would be Scanner Interface Programming friends will definitely help
    2022-09-12 21:15:03下载
    积分:1
  • 这个java5.0的API文档j2se_zh(new)是一位高手为了方便大家学习在SUN于2005/10/31发布不久后而制作的chm格式,目前世界上最新的AP...
    这个java5.0的API文档j2se_zh(new)是一位高手为了方便大家学习在SUN于2005/10/31发布不久后而制作的chm格式,目前世界上最新的API文档,最新出炉的中文API,很不错的哦,大家赶快来下载。 谢谢这位朋友。 Sun 公司提供的Java API Docs是学习和使用Java语言中最经常使用的参考资料之一。但是长期以来此文档只有英文版,对于中国地区的Java开发者来说相当的不便。目前Sun 公司正在组织多方力量将此文档翻译成中文,并于近日在Sun 中国技术社区正式发布java.lang和java.util类库API 文档的中文版。-java5.0 the API documentation j2se_zh (new) is a master in order to facilitate learning in the Sun 2005/11/02 released shortly after the production of chm format, the world"s latest API documentation, the latest Chinese latest API, very good, oh, we hasten to download. Thank you, my friend. Sun"s Java API Docs is the learning and use of the Java language most often used in reference one. However long this document only in English, Chinese region of Java developers is a great inconvenience. Now Sun is organizing efforts of the various parties this documentation translated into Chinese, and China"s Sun recently released technical community and java.util java.io class library API documentation of
    2022-05-29 21:12:24下载
    积分:1
  • Through the test board may be easier to simulation, the software for the HJ
    通过该实验板可以比较容易仿真,该软件为HJ-1051的实验板。-Through the test board may be easier to simulation, the software for the HJ-1051 experimental plates.
    2022-06-18 04:01:59下载
    积分:1
  • There is no excuse that IT staff, was just entering society officers must
    没有任何借口是IT人员,刚进入社会人员必看的书。-There is no excuse that IT staff, was just entering society officers must-see book.
    2023-02-13 23:45:04下载
    积分:1
  • 时钟闪烁移动
    #include"reg51.h" sbit SET_K    = P1^0; //设置 sbit PLUS_K   = P1^1;//左移加1 sbit SHIFT_K  = P1^2;//左移 sbit CHANGE_K = P1^3;//切换 年、月、日 bit SecFlag = 0;         bit FlashFlag = 0; unsigned int Counter = 0; unsigned char Led0,Led1,Led2,Led3,Led4; unsigned char Shift; code unsigned char LedSeg[10] = {0x3f,0x06,0x5B,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; void Time0() interrupt 1 // 0: EX0 1:Time0 2: EX1 3: Time1,4:serial     中断 {  static unsigned int IntCnt;  TH0 = 0xfc;  TL0 = 0x66;    if(++IntCnt > 1000)  {   IntCnt = 0;   SecFlag = 1;   }  switch(++Counter%5)     //显示功能   {    case 0:   
    2022-03-02 21:20:39下载
    积分:1
  • 网友学习笔记.rar
    网友学习笔记.rar-Netizen study notes. Rar
    2022-01-26 05:46:35下载
    积分:1
  • ActionScript abecedarium
    flash ActionScript学习基础教程-ActionScript abecedarium
    2022-11-30 15:15:03下载
    积分:1
  • 北京大学的com组件技术课件,讲得很好,适合初学者。
    北京大学的com组件技术课件,讲得很好,适合初学者。-Beijing University Software Component Technology, put it very well, suitable for beginners.
    2022-05-13 19:55:03下载
    积分:1
  • Unix Shell Programming 3rd Edition 2003
    Unix Shell Programming 3rd Edition 2003
    2022-12-26 20:35:09下载
    积分:1
  • winhex教程,讲述数据恢复的原理和方法。
    winhex教程,讲述数据恢复的原理和方法。-winhex tutorial about data recovery principle and method.
    2022-02-28 15:52:01下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载