📄 jlist.cpp
字号:
// test formula-based linear list class
// with right shift
#include <iostream.h>
#include "jlist.h"
#include "xcept.h"
void main(void)
{
try {
LinearList<int> L(15);
L.Insert(0,9).Insert(0,8).Insert(0,7).Insert(0,6);
L.Insert(0,5).Insert(0,4).Insert(0,3);
cout << "List is " << L << endl;
cout << "List shifted by 5 is "
<< L.RightShift(5)
<< endl;
}
catch (...) {
cerr << "An exception has occurred" << endl;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -