⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 清华大学数据结构的教程源码,c++版的,有助于提高自已对数据结构的认识
💻 TXT
字号:
#ifndef SELECTTM_H     
#define SELECTTM_H
#include "datalist.h"

template <class Type> void dataList <Type>::Swap (const int mark1, const int mark2) {
    Type temp = Element[mark1];
    Element [mark1] = Element [mark2];
    Element [mark2] = temp;
}

template < class Type> void dataList <Type>::MaxKey(const int low, const int high) {
    int max = low;
    if ( k >= ArraySize ) k = ArraySize - 1;
    for (int k = low+1, k <= high, k++)
	if ( Element[max] < Element[k] ) max = k;
    return max;
}

template <class Type> ostream& operator << (ostream& outStream, const dataList <Type> outList) {
    outStream << "Array Contents:\n" ;
    for (int i = 0; i < outList ; i++)
    outStream << outList.Element[i] << ' ' ;
    outStream << endl;
    outStream << "Array Curre

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -