Your code will be compiled as C++14, make sure you use appropriate syntax. Different months of the year have different n
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Your code will be compiled as C++14, make sure you use appropriate syntax. Different months of the year have different n
Your code will be compiled as C++14, make sure you use appropriate syntax. Different months of the year have different numbers of days. - 31 days = January, March, May, July, August, October, December - 30 days = April, June, September, November - 28 days = February (ignore leap years) Declare a function called month_days in the file month_days.h. - month_days takes a single argument. - The argument is an integer representing a month. January is month 1 . December is month 12 . - month_days should return an integer representing the correct value for a given piece. - Any invalid inputs should return −1. For example: - should return 31 - should return 28 - should return -1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!