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

📄 echain.cpp

📁 data structures, algorithms and Application书的源代码
💻 CPP
字号:
// test extended chain operations

#include <iostream.h>
#include "echain.h"

void main(void)
{
   Chain<int> L;
   L.Insert(0,2).Insert(1,6);
   cout << "List is " << L << endl;
   L.Append(8);
   cout << "After appending 8, list is " << L << endl;
   L.Erase();
   cout << "After erase, list is " << L << endl;
   L.Append(1).Append(2).Append(3).Append(4);
   cout << "List is " << L << endl;
   L.Zero();
   cout << "After zero, list is " << L << endl;
}

⌨️ 快捷键说明

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