-
Quick-sort
Quicksort sorts by employing a divide and conquer strategy to divide a list into two sub-lists.
The steps are:
Pick an element, called a pivot, from the list.
Reorder the list so that all elements with values less than the pivot come before the pivot, while all elements with values greater than the pivot come after it (equal values can go either way). After this partitioning, the pivot is in its final position. This is called the partition operation.
Recursively sort the sub-list of lesser elements and the sub-list of greater elements.
The base case of the recursion are lists of size zero or one, which never need to be sorted.
- 2011-03-17 03:41:02下载
- 积分:1
-
Digital-clock
通过ATMEGA16A单片机,采用时间戳读取时钟,并显示在LCD1602上(ATMEGA16A microcontroller, using the time stamp to read the clock, and displayed on the LCD1602)
- 2015-10-31 16:52:41下载
- 积分:1
-
分页控件
一.主要功能:
数据库中编写存储过程实现分页功能。在asp.net页面传递当前显示的页号和页大小调用Sql
Server存储过程获取并显示当前页的数据
二:存储过程
此分页控件主要的分页是用存储过程。使用存储过程效率更高,加快查询的速度,可以优化ASP.net代码和增强代码灵活性。在VS.net2005进行数据库的操作时,经常会用到GridView控件。这样可以把所有的事情都在服务器端完成,大大减小服务器的负担。
当数据库中的记录很多时,通过字段在数据库中分页,在前台通过设置其当前的页号和页大小,当数据很大的时候。可以在文本框中设置其当前的页号和每一页数进行分页,并可通过不同的数据控件显示。
- 2022-03-21 14:48:18下载
- 积分:1
-
CMFECToolTip
浮动鼠标提示信息
添加类CMFECToolTip
实现:鼠标移动到一个控件上时,会弹出一个提示框
(Floating the mouse message Add Class CMFECToolTip implementation: a control mouse, it will pop up a prompt box)
- 2010-10-08 09:18:55下载
- 积分:1
-
ASS58N
把格雷码转换成十六进制的C语言程序,用来读取编码器的值(Gray code put into hexadecimal C Programming Language, used to read the value encoder)
- 2007-02-07 16:13:04下载
- 积分:1
-
Codeforces
Solution for some problems in Codeforces
- 2014-01-09 23:02:19下载
- 积分:1
-
C++ Primer Plus(第五版)习题解答和例题代码
C++ Primer plus 的习题答案及源码(Answer and source code of C++ Primer plus)
- 2017-12-24 16:53:29下载
- 积分:1
-
MP3Player_kechengsheji
说明: 漂亮的MP3播放器,Visual C++ 6.0环境下MFC开发(nice MP3 player, 6.0 Visual C development environment MFC)
- 2006-04-12 17:27:09下载
- 积分:1
-
107 网口笔记
使用STM32F407进行以太网通信,并涉及到数据链路层的工业以太网通信,使用LWIP协议栈(STM32F407 is used for Ethernet communication, which involves industrial Ethernet communication in data link layer, and LWIP protocol stack is used.)
- 2019-07-02 19:32:18下载
- 积分:1
-
lioncrossriver
有三对母子狮子Aa、Bb与Cc,其中ABC为母狮,abc为小狮。要过一条河,河边只有一条船,狮子自己划船,船每次只能载两只狮子。
生存准则:一只小狮如果没有母亲的保护,则会被其它母狮吃掉。母狮之间、小狮之间是安全的。
问题:如何安全过河?
(Lions have three pairs of mother and Aa, Bb and Cc, which ABC is a lioness, abc is a small lion. To cross a river, the river is only one ship, the lion his boat, the ship can only contain two lions. Living standards: a small lion without the protection of the mother, will be eaten by the other lioness. Lioness between, between the small lion is safe. Question: how to safely cross the river?)
- 2011-05-12 15:37:56下载
- 积分:1