#include<stdio.h>
int days_sum(struct date);
struct date
{
int year;
int month;
int day;
}date1;
int main()
{
int sum;
printf("please enter date:(year month day)\n")
C程序设计(第四版) 谭浩强 习题9.2 写一个函数days,实现计算该日在本年中是第几天(结构体)
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<stdio.h>
int days_sum(struct date);
struct date
{
int year;
int month;
int day;
}date1;
int main()
{
int sum;
printf("please enter date:(year month day)\n")