📄 order_list.cpp
字号:
#include "list.h"
//define
order_list::order_list(int max)
{
length = 0;
max_length = max;
items = new key[max];
}
//end
error_code order_list::insert(key record)
{
if (length >= max_length) return overflow;
int position = size();
while (items[position-1] >= record && position != 0) position--;
list<key>::insert(position, record);
return success;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -