12883: 【设计型】第12章:结构体和共同体 第几天
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:Imported
Submit:1
Solved:0
Description
定义一个结构体变量(包括年、月、日)。编写一个函数days,计算该日期在本年中是第几天(注意闰年问题)。由主函数将年月日传递给days函数,计算之后,将结果传回到主函数输出。
Input
输入年月日,格式为xxx xx xx
Output
先开始提示用户输入日期;然后输出第几天。
Sample Input Copy
2013 01 02
Sample Output Copy
请输入日期
日期2013/1/2是2013年的第2天