题解 1049: [编程入门]结构体之时间设计

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

[编程入门]结构体之时间设计-题解(C语言代码)

````c/*定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。输入年月日输出当年第几天样例输入20001231样例输出366*/#includestructDate{intyear;intmonth;intday;};structDatedate;intmain(){in