用C语言怎么编写这个万年历答:其中,年份系数我以2007年做参照,已知2007年,年份系数是0,往前往后分别是递减和递增。增减规律:非闰年为±1,闰年1~2月-2或+1,闰年3~12月+2或者-1。其中,12个月份系数对应:0,3,3,6,1,4,6,2,5,0,3,5。根据以上规律,只要利用循环,就可以的到对应系数和星期。日历实现翻页功能,...
万年历代码 c语言答:你试一下下面这个代码吧 include <stdio.h> define LMonth 31 define SMonth 30 define VMonth 28 typedef enum { Sun,Mon,Jue,Wed,Thu,Fri,Sat } WEEK;typedef enum { January =1,February,Match,Apirl,May,June,July,August,September,October,November,December } MONTH;void printMonHead(void...