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

📄 movelist.cpp

📁 数据结构c++语言描述 Borland C++实现
💻 CPP
字号:


#include<iostream.h>
#include "movelist.h"
void main(void)
{
   int x, n = 15;
   LinearList<int> L(20);
   for (int i = 0; i < n; i++)
      L.Insert(0,i);
   cout << "The list is" << endl;
   cout << L << endl;
   L.Reset();
   cout << "At front, should return true " << L.Front() << endl;
   L.Current(x);
   cout << "First element is " << x << endl;
   L.Next();
   L.Current(x);
   cout << "Second element is " << x << endl;
   L.Next();
   L.Next();
   L.Current(x);
   cout << "Fourth element is " << x << endl;
   L.Previous();
   L.Current(x);
   cout << "Third element is " << x << endl;
   cout << "Not at end, should return false " << L.End() << endl;
   cout << "Not at front, should return false " << L.Front() << endl;
}

⌨️ 快捷键说明

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