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

📄 单向链表.cpp

📁 本人用c++编写的链表
💻 CPP
字号:
#include "stdafx.h"
#include "qlist.h"

int main()
{
	QList<int> List;
	List.Append(100);
	List.Append(101);
	List.Append(102);
	List.Append(103);
	List.Append(104);
	List.Append(105);
	List.Append(106);
	List.Append(107);
	List.Append(108);
	List.Append(109);

	List.Output();
	
	int nLen=List.GetLength();

	for(int i=0;i<nLen;i++)
		printf("\n%d=%d",i,List.At(i));

	for(i=0;i<nLen;i++)
		List[i]=i;
	
	List.Output();

	List.Sort();
	List.Output();
	
	return 0;
}




















⌨️ 快捷键说明

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