#C语言# #结构体#
定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天?注意闰年问题。 输出格式要求:"\n%d月%d日是%d年的第%d天。"
程序的运行示例如下: 请输入日期(年,月,日) 1990,2,14
要求输出: 2月14日是1990年的第45天。
#include<stdio.h>
struct date
{
int year,month,day;
}d;
int main()
{
int count;
printf("请输入日期(年,月,日)\n");
scanf("%d,%d