#include //台历(没有实现双列输出 和 1582年的少十天 void k( int x,int year,int month) { int i,day=0,j; for(i=0;i=5&&day<=14) { printf("\n"); while(month++<=12) { switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: x=31; weed(month,year); k(x,year,month); break; case 4: case 6: case 9: case 11: x=30; weed(month,year); k(x,year,month); break; case 2: if(year%4==0&&year%100!=0||year%400==0) x=29; else x=28; weed(month,year); k(x,year,month); } } } else printf("\n"); while(month++<=12) { switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: x=31; weed(month,year); k(x,year,month); break; case 4: case 6: case 9: case 11: x=30; weed(month,year); k(x,year,month); break; case 2: if(year%4==0&&year%100!=0||year%400==0) x=29; else x=28; weed(month,year); k(x,year,month); break; } } } } }