Connecting Tech Pros Worldwide Help | Site Map

how to make a simple monthly calendar

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 4 Weeks Ago
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?
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,161
#2: 4 Weeks Ago

re: how to make a simple monthly calendar


Start by working out what data structures you will need and how you are going to read you file into them.
Expert
 
Join Date: Mar 2008
Location: Naperville, Illinois U.S.
Posts: 828
#3: 4 Weeks Ago

re: how to make a simple monthly calendar


Also, before you start programming you should determine what algorithm you will use to convert date to day of the week.
Familiar Sight
 
Join Date: Jan 2007
Posts: 188
#4: 4 Weeks Ago

re: how to make a simple monthly calendar


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.
Reply

Tags
c++, calendar, functions