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

📄 crosslist.cpp

📁 一个用十字链表实现的稀疏矩阵类
💻 CPP
字号:
// CrossList.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream.>
#include <iomanip.>
#include "CCrossList.h"
using namespace std;

void main(int argc, char* argv[])
{
//	CrossList *cl1 = new CrossList(5,4);
//	cl1->InsertElement(0,1,2);
//	cl1->InsertElement(1,3,5);
//	cl1->PrintAll();
//	delete cl1;
	int* data;
	for(int i=1; i<5000; i++)
	{
		data = new int[i];
		for(int j=0; j<i; j++)
			data[j]=j+1;
//		delete []data;
//		for(int k=0; k<i; k++)
//			cout<<setw(10)<<data[k];
//		cout<<endl;
	}
	getchar();
}

⌨️ 快捷键说明

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