Toggle navigation
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1446--【设计型】第12章:结构体和共同体 第几天
1446: 【设计型】第12章:结构体和共同体 第几天
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
1
Solved:
1
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
定义一个结构体变量(包括年、月、日)。编写一个函数days,计算该日期在本年中是第几天(注意闰年问题)。由主函数将年月日传递给days函数,计算之后,将结果传回到主函数输出。
Input
输入年月日,格式为xxx xx xx
Output
先开始提示用户输入日期;然后输出第几天。
Sample Input
Copy
2013 01 02
Sample Output
Copy
请输入日期 日期2013/1/2是2013年的第2天
Source/Category
高级语言程序设计I-第12章:结构体和共用体(2)