By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

how to make a simple monthly calendar

P: 1
I'm trying to write a program that makes a monthly calendar.

I want it to pull the names of the months out of a file then use seperate functions to assign each an integer 1 through 12, given the integer value return the number of days in that month for 2009 and given the day and month return what day of the week that date is in 2009.

I'm new to programing and I believe this should be fairly easy. I have my main program I just can't figure out how to write in these functions.

Anyone have any suggestions?
Oct 20 '09 #1
Share this Question
Share on Google+
3 Replies


Banfa
Expert Mod 5K+
P: 8,916
Start by working out what data structures you will need and how you are going to read you file into them.
Oct 20 '09 #2

Expert 100+
P: 2,400
Also, before you start programming you should determine what algorithm you will use to convert date to day of the week.
Oct 20 '09 #3

100+
P: 542
Consider using enum MONTH and and possibly enum WEEK. enum will not write the names for you it will only substitute an integer for the name.
Oct 22 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.