Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Sort.h
Package: paixu.rar [view]
Upload User: myichia
Upload Date: 2022-07-26
Package Size: 1012k
Code Size: 1k
Category:
Data structs
Development Platform:
Visual C++
- #ifndef SORT_H
- #define SORT_H
- typedef int KeyType;
- //顺序表结构
- /*---------------------------------------------------------------------*/
- typedef struct
- {
- KeyType key; //存储的元素类型
- }RedType;
- typedef struct
- {
- RedType *elem; //动态分配元素数目
- int length;
- }SqList;
- //功能函数
- /*---------------------------------------------------------------------*/
- void InitList(SqList &L); //初始化
- void SelectSort(SqList &L); //简单选择排序
- void BubbleSort(SqList &L); //冒泡法排序
- void InsertSort(SqList &L); //直接插入排序
- void ShellSort(SqList &L, int dlta[], int t); //希尔排序
- void QuickSort(SqList &L); //快速排序
- void DispPlay(SqList &L); //显示
- #endif