C语言实现计算一年中过了多少天

#include <stdio.h> #include <stdlib.h> int daysofmonth(int year, int month) { switch(month) { case 1: return 31; case 2: if(leapornot(year))return 29; return 28; case 3: return 31; case 4: return 30;
相关文章
相关标签/搜索