main.cpp

来自「易学c++源码」· C++ 代码 · 共 21 行

CPP
21
字号
#include "Linklist.h"
#include <iostream>
using namespace std;
int main()
{
	int tempi;
	char tempc;
	cout <<"请输入一个整数和一个字符:" <<endl;
	cin >>tempi >>tempc;
	Linklist a(tempi,tempc);
	a.Locate(tempi);
	a.Insert(1,'C');
	a.Insert(2,'B');
	cout <<"After Insert" <<endl;
	a.Show();
	cout <<"Node Allocation:" <<Node::allocation() <<endl;
	Node b;
	cout <<"An independent node created" <<endl;
	cout <<"Node Allocation:" <<b.allocation() <<endl;
	return  0;
}

⌨️ 快捷键说明

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