求本年第几天

2014-11-24 02:21:05 · 作者: · 浏览: 1
/*
*程序的版权和版本声明部分:
*Copyright(c)2013,烟台大学计算机学院学生
*All rights reserved.
*文件名称:
*作者:赵加响
*完成日期:2013年 11月13 日
*版本号:v1.0
*对任务及求解方法的描述部分:
*输入描述:
*问题描述:用函数输出日期是本年的多少天
*程序输出:
*问题分析:
*算法设计:
*/

#include
#include
using namespace std;
int time(int,int,int);
int main()
{
    int year,month,day,tian;
    cout<<"请输入年月日:"<>year>>month>>day;
    tian=time(year,month,day);
    cout<