-
#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
-
首先,分别对8255、8253进行初始化,设置8255为A口、C口输出,设置8253的计数器0为工作模式3;其次,设置IRQ7的中断矢量,使得有IRQ7中断时调...
首先,分别对8255、8253进行初始化,设置8255为A口、C口输出,设置8253的计数器0为工作模式3;其次,设置IRQ7的中断矢量,使得有IRQ7中断时调用SERVER;再次,调用INIT对计数值初始化;最后,主程序循环等待中断,开始秒表的计时。 2、 INIT子程序-First, the 8255,8253 initialization, set for the 8255 A-C mouth output, set 8253 as the Counter mode 0 3; Second, set up the interruption vector there, make it there interruption call SERVER; Again, call curl_setopt early to count before; Finally, the cycle of waiting for the main program interruption began stopwatch time. 2, curl_setopt Subroutine
- 2023-06-17 15:15:03下载
- 积分:1
-
汇编控制扬声器演奏音乐
汇编控制扬声器演奏音乐-Series loudspeakers playing music control
- 2023-01-05 03:45:03下载
- 积分:1
-
电动车从起跑线出发(车体不得超过起跑线),沿引导线到达B点。在“直道区”铺设的白纸下沿引导线埋有1~3块宽度为15cm、长度不等的薄铁片。电动车检测到薄铁片时需...
电动车从起跑线出发(车体不得超过起跑线),沿引导线到达B点。在“直道区”铺设的白纸下沿引导线埋有1~3块宽度为15cm、长度不等的薄铁片。电动车检测到薄铁片时需立即发出声光指示信息,并实时存储、显示在“直道区”检测到的薄铁片数目。
(2)电动车到达B点以后进入“弯道区”,沿圆弧引导线到达C点(也可脱离圆弧引导线到达C点)。-Electric cars starting from the starting line (the body must not exceed the starting line), along the guide wire to reach point B. In the
- 2022-09-07 11:55:03下载
- 积分:1
-
视窗环境下32汇编语言程序设计
Windows环境下32位汇编语言程序设计-Windows environment next 32 assembly language programming
- 2022-07-22 12:49:47下载
- 积分:1
-
100
100点温度值采集,并且可以进行摄氏温度和华氏温度的转换-100-point temperature value acquisition, and can be carried out Celsius and Fahrenheit temperature conversion
- 2022-04-14 22:08:07下载
- 积分:1
-
8051 procedures first set mileage value, and can show that the set value, in the...
8051程序 要先设定里程值,并能显示设定值,在开始按钮按下去后,里程值转换成记数初值,并开始计算里程-8051 procedures first set mileage value, and can show that the set value, in the beginning by this button, mileage converted into preliminary count, and began calculating mileage
- 2022-02-06 06:22:05下载
- 积分:1
-
random.zip 随机数产生器的汇编源代码 cmdsrc.zip 一个文本编辑器的汇编源代码 ourvxd.zip 一个用汇编编VxD的简单例子 foxpr...
random.zip 随机数产生器的汇编源代码 cmdsrc.zip 一个文本编辑器的汇编源代码 ourvxd.zip 一个用汇编编VxD的简单例子 foxprn.zip 一个在Fox中利用汇编语言接口程序实现打印图形的程序 amis.zip 在汇编程序中灵活运用TSRs的程序库-random.zip random number generator to compile the source code cmdsrc.zip a text editor ourvxd.zip compilation of source code used to compile a series of simple example VxD a foxprn.zip use Fox assembler language interface program print graphics procedures amis.zip in the compilation process TSRs flexibility in the use of the library
- 2023-04-01 18:00:04下载
- 积分:1
-
串口R232协议的了解,懂得如何读取串口的数据,发送数据到串口....
串口R232协议的了解,懂得如何读取串口的数据,发送数据到串口.-R232 serial protocol understanding, know how to read serial data, send data to the serial port.
- 2022-07-02 01:23:17下载
- 积分:1
-
ASM电机向前和向后
asm for motor forward and backward
- 2022-04-15 21:33:12下载
- 积分:1