I don't know how to caculate a calendar...
-
I need a source code to calculate about date. But the problem is: I have not got permission to use Date/Time System Function. So, I must write my own algorithm to cal. date. Input is: One date (ie: Thu, 1-1-0000) And output is: If user want to know the date: 20/4/2002 they can choose and know it is Friday. Thanks for your helping newcinc ----------------- Pls contact to me if you have some ideals: newcinc@storm-eyes.com - Website: www.storm-eyes.com ------------------ www.storm-eyes.com
-
I need a source code to calculate about date. But the problem is: I have not got permission to use Date/Time System Function. So, I must write my own algorithm to cal. date. Input is: One date (ie: Thu, 1-1-0000) And output is: If user want to know the date: 20/4/2002 they can choose and know it is Friday. Thanks for your helping newcinc ----------------- Pls contact to me if you have some ideals: newcinc@storm-eyes.com - Website: www.storm-eyes.com ------------------ www.storm-eyes.com
Try the following: char* CalDate(char* InDate){ if (*InDate == "20/4/2002") return ("Friday"); return ("The date should be 20/4/2002"); } :-O Sorry about that :-O :( but this is :laugh: :(( Rant:mad:: and Rave:mad: Forum :(( :laugh: :mad: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :)