Couldn't you define a string containing the birthday date, or part of the birthday date and then use the std::string::startwith(), endswith() and contains() methods (or similar, these particular names might be the Java names, but equivalents exist in C++) to compar the date with the current date and time in particular format? The idea of rules is more suited to a language like prolog or lisp.
|