登录
首页 » 汇编语言 » #include <iostream> #include <stack> #define MAX_SIZE...

#include <iostream> #include <stack> #define MAX_SIZE...

于 2022-05-08 发布 文件大小:835.00 B
0 117
下载积分: 2 下载次数: 1

代码说明:

非递归的快速排序算法-#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]

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

发表评论


0 个回复

  • 我在课上完成的一些作业(上机常见习题)和课本上的几个例题,常用的输入输出模块,如: 把压缩存放的BCD码,转换为对应十进制数字ASCII码的程序;...
    我在汇编课上完成的一些作业(上机常见习题)和汇编课本上的几个例题,常用的输入输出模块,如: 把压缩存放的BCD码,转换为对应十进制数字ASCII码的程序;编写从键盘键入0至9中任一自然数x,求其立方值;内存中以BUFFER为首地址的缓冲区有10个非压缩型BCD码形式存放的十进制数,它们的值可能是0~9中的任意一个,将这些十进制数顺序显示在屏幕上等等,-I completed classes in the compilation of a number of operations (on the machine common exercises) and the compilation of textbooks on a few examples of commonly used input and output modules, such as: the compressed storage of BCD code, converted to decimal ASCII code corresponding to the procedure prepared from the keyboard type 0-9 in any natural number x, for the cubic value memory to buffer BUFFER headed Address has 10 non-compression type BCD code stored in the form of a decimal number, their value may be 0 ~ 9 any one of these decimal number sequence displayed on the screen, etc.
    2023-08-11 06:25:03下载
    积分:1
  • DES是一种分组密码。假定明文m是由0和1组成的长度为64位的符号串,密钥k也是64位的0、1符号串。...
    DES是一种分组密码。假定明文m是由0和1组成的长度为64位的符号串,密钥k也是64位的0、1符号串。-DES is a block cipher. M is expressly assumed by 0 and a length of 64 strings of symbols, as well as key k 0 64, a string of symbols.
    2022-03-10 08:33:02下载
    积分:1
  • 用8279芯片对4*4矩阵键盘和8个LED显示器进行模拟电梯的实际欲动状况...
    用8279芯片对4*4矩阵键盘和8个LED显示器进行模拟电梯的实际欲动状况-With the 8279 chip to 4* 4 matrix keyboard and eight LED displays simulation elevator want to move the actual situation of
    2023-05-02 02:40:03下载
    积分:1
  • ;每隔10ms响铃一下
    汇编;每隔10ms响铃一下-compilation; Neither about every 10ms
    2022-05-18 11:43:17下载
    积分:1
  • PIC16F877 to achieve key
    PIC16F877实现按键扫描和数码管显示、蜂鸣片同时DD响,当按键下时,数码管加一,蜂鸣片DD响两次。-PIC16F877 to achieve key-scan and digital tube display, beep sound piece at the same time DD, when the button when you are not, the digital control plus one, beep piece DD ring twice.
    2022-07-27 04:26:14下载
    积分:1
  • 一个简单的linux下的客户端,有什么问题请多指教!
    一个简单的linux下的客户端,有什么问题请多指教!-a simple linux under the client and what problems it should improve!
    2023-06-03 07:25:03下载
    积分:1
  • 工作环境为: 按键采用中断方式 IIC总线接通 P0口上拉 LS244使能 接通数码管 K0:确定键,用来确定调节好的时钟或者闹钟...
    工作环境为: 按键采用中断方式 IIC总线接通 P0口上拉 LS244使能 接通数码管 K0:确定键,用来确定调节好的时钟或者闹钟 K1:时钟调节键,用来选择时钟调节的位置 K2:调节键,用来使选中的数字发生改变 K3:闹钟调节键,用来选择闹钟调节的位置 接通电源后可能需要按一次K4(复位键),时钟才会开始走动,此时是一个默认的时间,使用K1来选择需要更改的数字的位置,然后按K2调节,所有的数字都调节好后按K0确定,则时钟会按照新调节好的数据开始走动。 闹钟默认为晨7点,可以通过K3+K2+K0来调节,调节方法同时钟调节。 这是一个比较完善的时钟程序,当然还可以增加许多功能,例如增加闹钟的时间段,或者使到时间后某个输出有效等等,请大家多琢磨,希望看到各位写出的程序比我的这个好。 这个试验主要是学习PCF8563的使用,但也综合了IIC总线读写、中断方式按键处理、数码管数字显示、数码管动态刷新以及内部软件定时等方面,因此是一个综合性比较强的试验。
    2022-06-29 23:08:31下载
    积分:1
  • Through the AT89C51, can be carried out on the LCD to read and write.
    通过AT89C51,可以对LCD 进行读和写.-Through the AT89C51, can be carried out on the LCD to read and write.
    2022-07-08 19:14:34下载
    积分:1
  • Timing counts subtraction. Input data between the three
    定时减法计数。输入数据0到9之间三位数,开始计时,每秒减一。当计数完成时,可做二次开发。还可做简单加减法-Timing counts subtraction. Input data between the three-digit 0-9, start running, by one per second. When the count is complete, do the secondary development. Also to do simple addition and subtraction
    2023-07-09 20:55:03下载
    积分:1
  • 键盘输入顶点信息,有向图最短路径,最短时间,两点之间路径...
    键盘输入顶点信息,有向图最短路径,最短时间,两点之间路径-Keyboard input vertex information, has to map the shortest path, shortest time path between two points
    2022-03-21 01:38:27下载
    积分:1
  • 696518资源总数
  • 104863会员总数
  • 25今日下载