-
#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
-
写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度...
写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度-Writing a function, and the length of a string, in the main function in the input string and output its length
- 2022-05-29 01:37:52下载
- 积分:1
-
电子秒表
电子秒表-99 seconds time counter
- 2022-03-17 23:52:16下载
- 积分:1
-
随机产生10道互不相同的20以内的加减法(加减数及和差均<=20)待用户答完题后,显示用户的得分、评语及正确答案。并带彩色,计时器和系统日期和时间。这是我...
随机产生10道互不相同的20以内的加减法(加减数及和差均
- 2022-05-30 18:41:16下载
- 积分:1
-
使用汇编语言对TMS320C2812进行编程的一个简单的工程模板。
使用汇编语言对TMS320C2812进行编程的一个简单的工程模板。-The use of assembly language programming on the TMS320C2812 a simple project template.
- 2022-03-22 21:24:58下载
- 积分:1
-
大家再看看吧
大家再看看吧-We look and see
- 2023-05-09 03:05:03下载
- 积分:1
-
识别语音的C代码! 还有教程说明.大家自己看看吧!
识别语音的C代码! 还有教程说明.大家自己看看吧!-Identification of the C code voice! There are tutorials that. Everyone could see for himself now!
- 2022-08-02 17:45:41下载
- 积分:1
-
ds1302时钟电路的汇编语言程序,编译无法通过,请各位大虾指教...
ds1302时钟电路的汇编语言程序,编译无法通过,请各位大虾指教-DS1302 clock circuit assembly language program, the compiler can not, please enlighten prawns
- 2022-03-02 07:27:59下载
- 积分:1
-
stack
数据结构:用栈的思想实现公式运算,符号@标志结束(Using the idea of stack to implement the formula operation, the sign @ sign is over)
- 2018-02-05 11:15:19下载
- 积分:1
-
一个汇编语言程序,功能是输入一个字符及其前导字符和后续字符!...
一个汇编语言程序,功能是输入一个字符及其前导字符和后续字符!-an assembly language program, which aims to bring in a pre-characters and characters and follow-up characters!
- 2023-02-27 07:45:03下载
- 积分:1