echain.cpp

来自「data structures, algorithms and Applicat」· C++ 代码 · 共 20 行

CPP
20
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?