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

📄 classassignmentoverload.h

📁 C++编成数据结构与程序设计方法 D.S.Malk编著
💻 H
字号:


class cAssignmentOprOverload
{
public:
    const cAssignmentOprOverload& 
            operator=(const cAssignmentOprOverload& otherList);
      //Overload 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,
      //                  output an appropriate message
    void destroyList();
      //Function to destroy the list
      //Postcondition: length = 0; maxSize = 0; list = NULL;

    cAssignmentOprOverload(int size = 0);
      //Constructor
      //Postcondition: length = 0; maxSize = size; 
      //               list is an arry of size maxSize

private:
    int maxSize;
    int length;
    int *list;
};

⌨️ 快捷键说明

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