Weekly reminder program on C++

Asked By 20 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 5 points N/A #103260

Weekly reminder program on C++

qa-featured

 

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:

A Simple Timer in C++

Refer to this web site below on how to use event objects:

Event Handling in C++

I hope it helped.

 

Related Questions