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

📄 homeworklist.h

📁 este es solo un archivo para probar como funciona la subiada de archivos y ver como puedes bajar mas
💻 H
字号:
/*
* homeworklist.h
*
* This maintains a collection of homework assignments.
* It allows assignments to be added to the collection, and
* searched based on their due date. It can store up to 50
* assignments.
*
* Include your implementations of
* the class member functions in homeworklist.cpp.
*
*/

#ifndef _HOMEWORKLIST_H
#define _HOMEWORKLIST_H

#include "homework.h"

const int LIST_MAX = 50; // Maximum of 50 assignments; change if desired

class homeworklist;

ostream &operator<< (ostream &stream, homeworklist hl);

class homeworklist {

private:
    homework list[LIST_MAX]; // Array of individual assignments
    int current_size; // total currently within array

public:
    homeworklist(); // default constructor
    bool add (homework h); // adds a new assignment to this collection

    // Returns a new homeworklist containing only those homeworks due
    // after, but not on, the specified date
    homeworklist dueafter (date d);

    // Returns a new homeworklist containing only those homeworks due
    // before, but not on, the specified date
    homeworklist duebefore (date d);

    // Returns a new homeworklist containing only those homeworks due
    // exactly on the specified date, but not before or after
    homeworklist dueon (date d);

    // The standard insertion operator. It should just list
    // one homework per line
    friend ostream &operator<< (ostream &stream, homeworklist hl);
};

#endif // Nothing belongs below here

⌨️ 快捷键说明

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