Click here to Skip to main content
15,913,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Sample of C++ code that has an output of calendar
Posted
Comments
Sergey Alexandrovich Kryukov 18-Mar-12 21:12pm    
Not a question. And not clear what do you mean by "output of calendar".
--SA
Member 11469075 21-Feb-15 19:30pm    
Write a program, that incorporates a function called no_in_month that will return the
number of days (an int not a string) in the month of February. The year is input by the
user in main() and passed to the function when it is called. A leap year (29 days in
February) occurs if the year is evenly divisible by 4. However, leap years do not occur at
the end of centuries which are not evenly divisible by 400, e.g. the years 1700, 1800,
1900 are not leap years but 1600, 2000 are. Check your output for various years. (To
check calendars, see http://www.timeanddate.com/calendar/ but change the country to
Spain as Spain was one of the earliest countries to adopt the (Gregorian) calendar we use
today. The calendars shown on this site are with Monday as the first day of week. Use
the option to change to Sunday to avoid confusion later.) hi is there any easy way of doing this

1 solution

Your question isn't really clear, but I'm sure Google has a good answer for you:
http://lmgtfy.com/?q=C%2B%2B+calendar[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900