classassignmentoverload.h
来自「data+structures+using+c的源码」· C头文件 代码 · 共 35 行
H
35 行
class cAssignmentOprOverload
{
public:
const cAssignmentOprOverload&
operator=(const cAssignmentOprOverload& otherList);
//Overloads the assignment operator
void print() const;
//Function to print the list
void insertEnd(int item);
//Function to insert an item at the end of the list
//Postcondition: if the list is not full, length++;
// list[length] = item
// if the list is full, outputs an
// appropriate message
void destroyList();
//Function to destroy the list
//Postcondition: length = 0; maxSize = 0;
// list = NULL
cAssignmentOprOverload(int size = 10);
//constructor
//Postcondition: length = 0; maxSize = size;
// list is an array of size maxSize
private:
int maxSize;
int length;
int *list;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?