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 0 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:

http://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:

http://www.codekeep.net/snippets/4fd264cf-3416-40b1-8971-0c04aaba1068.aspx

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

http://www.codeguru.com/cpp/cpp/cpp_mfc/events/article.php/c4075/How-to-Work-with-Events-in-a-C-Class.htm

I hope it helped.

 

Login/Register to Answer

Related Questions