insertsort.cpp

来自「包含各种测试,查找和算法等代码,如冒泡算法,树的遍历,链表,队列,堆栈等」· C++ 代码 · 共 22 行

CPP
22
字号
#include <iostream.h>

typedef int KeyType;
struct DataType
{
	KeyType key;
};

#include "InsertSort.h"

void main(void)
{
	DataType test[6]={64,5,7,89,6,24};
	int n = 6;

	InsertSort(test,n);

	for(int i=0; i<n; i++)
		cout << test[i].key << "  ";
}

⌨️ 快捷键说明

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