-
#include <iostream>
#include <stack>
#define MAX_SIZE...
非递归的快速排序算法-#include
#include
#define MAX_SIZE 11
using namespace std
typedef int elem
typedef std::stack Stack
int partition(elem*pData, int low, int high)
void swap(elem& a, elem& b)
void qsort(elem* pData, int low, int high)
int partition(elem*pData, int low, int high)
{
elem key = pData[low]
while(low < high)
{
while(low < high && pData[high] >= key)
high--
swap(pData[low], pData[high])
while(low < high && pData[low]
- 2022-05-08 16:41:43下载
- 积分:1
-
本程序用来计算matlab中两点坐标之间的距离,坐标必须是经纬度,并表明所要计算的单位...
本程序用来计算matlab中两点坐标之间的距离,坐标必须是经纬度,并表明所要计算的单位-This procedure used to calculate the matlab in the distance between two coordinates, latitude and longitude coordinates must be, and show that to calculate the unit
- 2022-11-18 19:30:03下载
- 积分:1
-
AT24C01的汇编驱动程序,如果能看懂会给你带来很大的好处,学习的好资料....
AT24C01的汇编驱动程序,如果能看懂会给你带来很大的好处,学习的好资料.-The driver of AT24C01, it will bring you very big benfit if you will read it, it is very nice.
- 2022-03-24 19:12:41下载
- 积分:1
-
A Newton interpolation matlab m
一个牛顿插值的matlab的m文件-A Newton interpolation matlab m-file
- 2022-01-26 07:23:21下载
- 积分:1
-
This is a sample of OUT instruction. It writes values to virtual I/O port that c...
This a sample of OUT instruction. It writes values to virtual I/O port that controls the stepper-motor. Try using datCCW, datCW_FS or datCCW_FS instead of datCW to get different behavior of the motor. -This is a sample of OUT instruction. It writes values to virtual I/O port that controls the stepper-motor. Try using datCCW, datCW_FS or datCCW_FS instead of datCW to get different behavior of the motor.
- 2022-11-02 02:15:03下载
- 积分:1
-
这是一个贪吃蛇的汇编程序,实现了贪吃蛇的图形界面和键盘控制,一个小游戏,希望对大家有帮助。...
这是一个贪吃蛇的汇编程序,实现了贪吃蛇的图形界面和键盘控制,一个小游戏,希望对大家有帮助。-Snake This is a compilation of procedures, to achieve the Snake graphical interface and keyboard control, a little game we want to help.
- 2022-10-13 09:45:02下载
- 积分:1
-
P1口的某口亮与不亮的变色,不断变色,作指示闪灯用
P1口的某口亮与不亮的变色,不断变色,作指示闪灯用-mouth of a P1-mouth and the bright color, continuously changing color, directed by flashes
- 2022-03-16 00:47:59下载
- 积分:1
-
智能控制,安防源代码,单片51的汇编源程序,供大家研究
智能控制,安防源代码,单片51的汇编源程序,供大家研究-intelligent control, Security source code, a compilation of 51 single source for all research
- 2023-08-22 02:50:03下载
- 积分:1
-
硬件设计:简易LED显示计算器
运用汇编实现简易的4位加减乘除计算器,通过硬件课程实践,证明代码的有效性,并且,在确认键值的方法上有更新的方法,值得参考借鉴。
- 2022-07-11 02:07:35下载
- 积分:1
-
电子琴程序,典型的汇编程序
电子琴程序,典型的汇编程序-flower procedures, the typical assembler
- 2022-01-27 13:33:39下载
- 积分:1