p33temp().cpp

来自「清华大学数据结构的教程源码,c++版的,有助于提高自已对数据结构的认识」· C++ 代码 · 共 14 行

CPP
14
字号
#include <datalist.h>
#include <selecttm.h>

template < class Type > void dataList <Type> :: BubbleSort() {
    int i = 1;
    int exchange = 1;
    while ( i < ArraySize && exchange ) {
	BubbleExchange ( i, exchange );
	i++;
    }
}

template < class Type > void dataList <Type> :: BubbleExchange ( const int i, int & exchange ) {
    exchange = 0;

⌨️ 快捷键说明

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