年月日转化为天数小时

年月日转化为天数小时的方法:

int Date[15]={0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},a[M],pos[M],sum[M];
string Mon[15]={"","Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov" , "Dec"};

        cin>>s;
        scanf("%d%d%d%d",&d,&y,&h,&num);
        for(int j=2000;j

 

你可能感兴趣的:(ACM_基本知识总结)