?? half.cpp
字號:
// Test LinearList<T>::Half
#include <iostream.h>
#include "clist.h"
void main()
{
// initialize two lists
int n = 10, m = 5;
LinearList<int> A(20), B(20);
for (int i = 0; i < n; i++)
A.Insert(0, 2*(n - i));
for (int i = 0; i < m; i++)
B.Insert(0, 2*(n - i) + 1);
cout << "List A is" << endl;
cout << A << endl;
cout << "A.Half() is" << endl;
cout << A.Half() << endl;
cout << "List B is" << endl;
cout << B << endl;
cout << "B.Half() is" << endl;
cout << B.Half() << endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -