0
class Calendar
    {
    public:
        Calendar();
        Calendar(Appointment mname);
        void AddToCalendar(Appointment mname);
        void RemoveFromCalendar(Appointment mname);
    private:
        vector < Appointment > meetings;
    }; // Calendar



    class Appointment
    {
    public:
        Appointment();
        Appointment(vector< person > alist, Time stime, Time etime, Date d, Location p);
        vector< Person > getAttendees()
        Time getStartTime()
        Time getEndTime()
        Date getDate()
        Location getLocation();
    private:
        vector< Person > attendees;
        Time starttime;
        Time endtime;
        Date date;
        Location place;
    }; // Appointment

I don't really understand what these classes are. I don't know what the vectors are about... Can someone explain to me how I will create those functions so that I can implement these two classes in my main. I have 4 other classes in this program but im only using the this pointer to create the get functions. Any help is appreciated.

N. Banerjee

Edited by Nick Evan: Fixed formatting

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by ithelp
0

These classes are simulating person and attendance , you can think of vector as better array .

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.