Weekly reminder program on C++
What programming codes I should use if I am required to make a weekly reminder on C++, provided that the weekly reminder have different reminders for 20 people?
What programming codes I should use if I am required to make a weekly reminder on C++, provided that the weekly reminder have different reminders for 20 people?
Hi Ronald,
First of all you have figure out the program flow. From my point of view you have to create a class that will hold a reminder instance, let’ say:
class Reminder
{
public:
Reminder();
~Reminder();
// public methods
protected:
// protected members
private:
//private methods
// instance variables
};
Each instance of this class has a member that holds the timestamp of the reminder and an event that will be triggered when the reminder is near like 15 minutes before the time. You need to have enough knowledge about threads, events and other synchronization objects.
To help you familiarized with those here is an example that illustrates how to use a thread object:
https://www.codeproject.com/Articles/1570/A-Generic-C-Thread-Class
You can find bunch of examples on how to on the web.
There is an example of how timer is created and used on the link below:
Refer to this web site below on how to use event objects:
I hope it helped.